diff options
author | nyamatongwe <devnull@localhost> | 2009-04-12 05:59:50 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2009-04-12 05:59:50 +0000 |
commit | a20c48b229b1b80dbce7d3c359def6a789002fca (patch) | |
tree | 2179411162e59d989ae8e2c44db37c5c74ac813d /src/LexOthers.cxx | |
parent | d7ce9e5a6a433e570c05d42f796772d233a540b1 (diff) | |
download | scintilla-mirror-a20c48b229b1b80dbce7d3c359def6a789002fca.tar.gz |
Using comments in lexer code to document meaning of properties.
Automatically extract into SciTE doumentation.
Diffstat (limited to 'src/LexOthers.cxx')
-rw-r--r-- | src/LexOthers.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/LexOthers.cxx b/src/LexOthers.cxx index f5382bfdc..3c6940bfc 100644 --- a/src/LexOthers.cxx +++ b/src/LexOthers.cxx @@ -694,6 +694,11 @@ static void ColourisePropsDoc(unsigned int startPos, int length, int, WordList * styler.StartSegment(startPos); unsigned int linePos = 0; unsigned int startLine = startPos; + + // property lexer.props.allow.initial.spaces + // For properties files, set to 0 to style all lines that start with whitespace in the default style. + // This is not suitable for SciTE .properties files which use indentation for flow control but + // can be used for RFC2822 text where indentation is used for continuation lines. bool allowInitialSpaces = styler.GetPropertyInt("lexer.props.allow.initial.spaces", 1) != 0; for (unsigned int i = startPos; i < startPos + length; i++) { @@ -1097,6 +1102,12 @@ static void ColouriseErrorListDoc(unsigned int startPos, int length, int, WordLi styler.StartAt(startPos); styler.StartSegment(startPos); unsigned int linePos = 0; + + // property lexer.errorlist.value.separate + // For lines in the output pane that are matches from Find in Files or GCC-style + // diagnostics, style the path and line number separately from the rest of the + // line with style 21 used for the rest of the line. + // This allows matched text to be more easily distinguished from its location. bool valueSeparate = styler.GetPropertyInt("lexer.errorlist.value.separate", 0) != 0; for (unsigned int i = startPos; i < startPos + length; i++) { lineBuffer[linePos++] = styler[i]; |