diff options
| author | nyamatongwe <unknown> | 2009-04-12 05:59:50 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2009-04-12 05:59:50 +0000 | 
| commit | 001550a0de196eca314eea792bfada74a19773b1 (patch) | |
| tree | 2179411162e59d989ae8e2c44db37c5c74ac813d /src/LexPython.cxx | |
| parent | 67db09ae242cf51a4aab5fe8cb36bb8e7b11c7dd (diff) | |
| download | scintilla-mirror-001550a0de196eca314eea792bfada74a19773b1.tar.gz | |
Using comments in lexer code to document meaning of properties.
Automatically extract into SciTE doumentation.
Diffstat (limited to 'src/LexPython.cxx')
| -rw-r--r-- | src/LexPython.cxx | 14 | 
1 files changed, 14 insertions, 0 deletions
| diff --git a/src/LexPython.cxx b/src/LexPython.cxx index 4513dccf2..26b96e4db 100644 --- a/src/LexPython.cxx +++ b/src/LexPython.cxx @@ -135,6 +135,14 @@ static void ColourisePyDoc(unsigned int startPos, int length, int initStyle,  	WordList &keywords = *keywordlists[0];  	WordList &keywords2 = *keywordlists[1]; +	// property tab.timmy.whinge.level +	//	For Python code, checks whether indenting is consistent.  +	//	The default, 0 turns off indentation checking,  +	//	1 checks whether each line is potentially inconsistent with the previous line,  +	//	2 checks whether any space characters occur before a tab character in the indentation,  +	//	3 checks whether any spaces are in the indentation, and  +	//	4 checks for any tab characters in the indentation. +	//	1 is a good level to use.   	const int whingeLevel = styler.GetPropertyInt("tab.timmy.whinge.level");  	// property lexer.python.literals.binary @@ -399,7 +407,13 @@ static void FoldPyDoc(unsigned int startPos, int length, int /*initStyle - unuse  	const int maxPos = startPos + length;  	const int maxLines = styler.GetLine(maxPos - 1);             // Requested last line  	const int docLines = styler.GetLine(styler.Length() - 1);  // Available last line + +	// property fold.comment.python +	//	This option enables folding multi-line comments when using the Python lexer.  	const bool foldComment = styler.GetPropertyInt("fold.comment.python") != 0; + +	// property fold.quotes.python +	//	This option enables folding multi-line quoted strings when using the Python lexer.  	const bool foldQuotes = styler.GetPropertyInt("fold.quotes.python") != 0;  	// Backtrack to previous non-blank line so we can determine indent level | 
