diff options
author | Tor Norbye <tnorbye@google.com> | 2011-08-02 14:13:47 -0700 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2011-08-03 11:51:10 -0700 |
commit | 83d04640bf245bb9ce108cef01e188761bc905f8 (patch) | |
tree | c48105226804977c718d78bc190060b48e9f350a /eclipse/dictionary.txt | |
parent | e6836b9ded9013725500aa2c9cd113545628a693 (diff) | |
download | sdk-83d04640bf245bb9ce108cef01e188761bc905f8.zip sdk-83d04640bf245bb9ce108cef01e188761bc905f8.tar.gz sdk-83d04640bf245bb9ce108cef01e188761bc905f8.tar.bz2 |
Improve smart-indent handling in XML files
This changeset adds a new "auto edit strategy" for Android XML files,
which replaces the default XML auto-indenter (which just copied the
indentation of the previous line.)
The new indenter instead uses the lexical information to indent based
on the tag and bracket balance.
For example, if the | represents the caret position, then the
following shows how the edits are transformed:
<foo name="value"/>| => <foo name="value"/>
|
<foo name="value">| => <foo name="value">
|
<foo <foo
attr1 = "value1"|> => attr1 = "value1"
|>
<foo <foo
attr1 = "value1"/>| => attr1 = "value1"/>
|
It can also modify the text after the caret, as in the following
transformation:
<foo>|</foo> => <foo>
|
</foo>
See the unit test for more cases.
Change-Id: Ia99ecf6573ff4a9473970aa2fd481d2228ddf45d
Diffstat (limited to 'eclipse/dictionary.txt')
-rw-r--r-- | eclipse/dictionary.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/eclipse/dictionary.txt b/eclipse/dictionary.txt index 002c62b..e966f98 100644 --- a/eclipse/dictionary.txt +++ b/eclipse/dictionary.txt @@ -191,11 +191,13 @@ regexp regexps registry reindent +reindenting remap reparse reparses rescales residual +resilient resizability resizable risky @@ -226,8 +228,10 @@ stretchiness struct styleable styleables +subclassed subclassing submenu +subregion supertype syncs synthetically |