Fix inadvertent "TQ" changes.

pull/1/head
Darrell Anderson 13 years ago
parent 29c4424ab9
commit fd8d92656e

@ -2370,10 +2370,10 @@ struct TextToFind {
20 Windows system colours.</p> 20 Windows system colours.</p>
<p>To see an example of how to enable palette support in Scintilla, search the text of SciTE <p>To see an example of how to enable palette support in Scintilla, search the text of SciTE
for <code>WM_PALETTECHANGED</code>, <code>WM_TQUERYNEWPALETTE</code> and for <code>WM_PALETTECHANGED</code>, <code>WM_QUERYNEWPALETTE</code> and
<code>SCI_SETUSEPALETTE</code>. The Windows messages to forward are:<br /> <code>SCI_SETUSEPALETTE</code>. The Windows messages to forward are:<br />
<code>WM_SYSCOLORCHANGE</code>, <code>WM_PALETTECHANGED</code>, <code>WM_SYSCOLORCHANGE</code>, <code>WM_PALETTECHANGED</code>,
<code>WM_TQUERYNEWPALETTE</code> (should return <code>TRUE</code>).</p> <code>WM_QUERYNEWPALETTE</code> (should return <code>TRUE</code>).</p>
<p>To forward a message <code>(WM_XXXX, WPARAM, LPARAM)</code> to Scintilla, you can use <p>To forward a message <code>(WM_XXXX, WPARAM, LPARAM)</code> to Scintilla, you can use
<code>SendMessage(hScintilla, WM_XXXX, WPARAM, LPARAM)</code> where <code>hScintilla</code> is <code>SendMessage(hScintilla, WM_XXXX, WPARAM, LPARAM)</code> where <code>hScintilla</code> is
@ -2935,7 +2935,7 @@ struct TextToFind {
</tr> </tr>
<tr> <tr>
<td align="left"><code>INDIC_STQUIGGLE</code></td> <td align="left"><code>INDIC_SQUIGGLE</code></td>
<td align="center">1</td> <td align="center">1</td>
@ -2994,7 +2994,7 @@ struct TextToFind {
</table> </table>
<p>The default indicator styles are equivalent to:<br /> <p>The default indicator styles are equivalent to:<br />
<code>SCI_INDICSETSTYLE(0, INDIC_STQUIGGLE);</code><br /> <code>SCI_INDICSETSTYLE(0, INDIC_SQUIGGLE);</code><br />
<code>SCI_INDICSETSTYLE(1, INDIC_TT);</code><br /> <code>SCI_INDICSETSTYLE(1, INDIC_TT);</code><br />
<code>SCI_INDICSETSTYLE(2, INDIC_PLAIN);</code></p> <code>SCI_INDICSETSTYLE(2, INDIC_PLAIN);</code></p>

@ -119,7 +119,7 @@
<tr bgcolor="#f0f0f0"><td><b>INDIC_MAX</b> enum value (defined in <a class="el" href="classQextScintillaBase.html">QextScintillaBase</a>)</td><td><a class="el" href="classQextScintillaBase.html">QextScintillaBase</a></td><td></td></tr> <tr bgcolor="#f0f0f0"><td><b>INDIC_MAX</b> enum value (defined in <a class="el" href="classQextScintillaBase.html">QextScintillaBase</a>)</td><td><a class="el" href="classQextScintillaBase.html">QextScintillaBase</a></td><td></td></tr>
<tr bgcolor="#f0f0f0"><td><b>INDIC_PLAIN</b> enum value (defined in <a class="el" href="classQextScintillaBase.html">QextScintillaBase</a>)</td><td><a class="el" href="classQextScintillaBase.html">QextScintillaBase</a></td><td></td></tr> <tr bgcolor="#f0f0f0"><td><b>INDIC_PLAIN</b> enum value (defined in <a class="el" href="classQextScintillaBase.html">QextScintillaBase</a>)</td><td><a class="el" href="classQextScintillaBase.html">QextScintillaBase</a></td><td></td></tr>
<tr bgcolor="#f0f0f0"><td><b>INDIC_ROUNDBOX</b> enum value (defined in <a class="el" href="classQextScintillaBase.html">QextScintillaBase</a>)</td><td><a class="el" href="classQextScintillaBase.html">QextScintillaBase</a></td><td></td></tr> <tr bgcolor="#f0f0f0"><td><b>INDIC_ROUNDBOX</b> enum value (defined in <a class="el" href="classQextScintillaBase.html">QextScintillaBase</a>)</td><td><a class="el" href="classQextScintillaBase.html">QextScintillaBase</a></td><td></td></tr>
<tr bgcolor="#f0f0f0"><td><b>INDIC_STQUIGGLE</b> enum value (defined in <a class="el" href="classQextScintillaBase.html">QextScintillaBase</a>)</td><td><a class="el" href="classQextScintillaBase.html">QextScintillaBase</a></td><td></td></tr> <tr bgcolor="#f0f0f0"><td><b>INDIC_SQUIGGLE</b> enum value (defined in <a class="el" href="classQextScintillaBase.html">QextScintillaBase</a>)</td><td><a class="el" href="classQextScintillaBase.html">QextScintillaBase</a></td><td></td></tr>
<tr bgcolor="#f0f0f0"><td><b>INDIC_STRIKE</b> enum value (defined in <a class="el" href="classQextScintillaBase.html">QextScintillaBase</a>)</td><td><a class="el" href="classQextScintillaBase.html">QextScintillaBase</a></td><td></td></tr> <tr bgcolor="#f0f0f0"><td><b>INDIC_STRIKE</b> enum value (defined in <a class="el" href="classQextScintillaBase.html">QextScintillaBase</a>)</td><td><a class="el" href="classQextScintillaBase.html">QextScintillaBase</a></td><td></td></tr>
<tr bgcolor="#f0f0f0"><td><b>INDIC_TT</b> enum value (defined in <a class="el" href="classQextScintillaBase.html">QextScintillaBase</a>)</td><td><a class="el" href="classQextScintillaBase.html">QextScintillaBase</a></td><td></td></tr> <tr bgcolor="#f0f0f0"><td><b>INDIC_TT</b> enum value (defined in <a class="el" href="classQextScintillaBase.html">QextScintillaBase</a>)</td><td><a class="el" href="classQextScintillaBase.html">QextScintillaBase</a></td><td></td></tr>
<tr bgcolor="#f0f0f0"><td><b>INDICS_MASK</b> enum value (defined in <a class="el" href="classQextScintillaBase.html">QextScintillaBase</a>)</td><td><a class="el" href="classQextScintillaBase.html">QextScintillaBase</a></td><td></td></tr> <tr bgcolor="#f0f0f0"><td><b>INDICS_MASK</b> enum value (defined in <a class="el" href="classQextScintillaBase.html">QextScintillaBase</a>)</td><td><a class="el" href="classQextScintillaBase.html">QextScintillaBase</a></td><td></td></tr>

@ -38,7 +38,7 @@
<tr bgcolor="#f0f0f0"><td><b>INDIC_MAX</b> enum value (defined in <a class="el" href="classQextScintillaBase.html">QextScintillaBase</a>)</td><td><a class="el" href="classQextScintillaBase.html">QextScintillaBase</a></td><td></td></tr> <tr bgcolor="#f0f0f0"><td><b>INDIC_MAX</b> enum value (defined in <a class="el" href="classQextScintillaBase.html">QextScintillaBase</a>)</td><td><a class="el" href="classQextScintillaBase.html">QextScintillaBase</a></td><td></td></tr>
<tr bgcolor="#f0f0f0"><td><b>INDIC_PLAIN</b> enum value (defined in <a class="el" href="classQextScintillaBase.html">QextScintillaBase</a>)</td><td><a class="el" href="classQextScintillaBase.html">QextScintillaBase</a></td><td></td></tr> <tr bgcolor="#f0f0f0"><td><b>INDIC_PLAIN</b> enum value (defined in <a class="el" href="classQextScintillaBase.html">QextScintillaBase</a>)</td><td><a class="el" href="classQextScintillaBase.html">QextScintillaBase</a></td><td></td></tr>
<tr bgcolor="#f0f0f0"><td><b>INDIC_ROUNDBOX</b> enum value (defined in <a class="el" href="classQextScintillaBase.html">QextScintillaBase</a>)</td><td><a class="el" href="classQextScintillaBase.html">QextScintillaBase</a></td><td></td></tr> <tr bgcolor="#f0f0f0"><td><b>INDIC_ROUNDBOX</b> enum value (defined in <a class="el" href="classQextScintillaBase.html">QextScintillaBase</a>)</td><td><a class="el" href="classQextScintillaBase.html">QextScintillaBase</a></td><td></td></tr>
<tr bgcolor="#f0f0f0"><td><b>INDIC_STQUIGGLE</b> enum value (defined in <a class="el" href="classQextScintillaBase.html">QextScintillaBase</a>)</td><td><a class="el" href="classQextScintillaBase.html">QextScintillaBase</a></td><td></td></tr> <tr bgcolor="#f0f0f0"><td><b>INDIC_SQUIGGLE</b> enum value (defined in <a class="el" href="classQextScintillaBase.html">QextScintillaBase</a>)</td><td><a class="el" href="classQextScintillaBase.html">QextScintillaBase</a></td><td></td></tr>
<tr bgcolor="#f0f0f0"><td><b>INDIC_STRIKE</b> enum value (defined in <a class="el" href="classQextScintillaBase.html">QextScintillaBase</a>)</td><td><a class="el" href="classQextScintillaBase.html">QextScintillaBase</a></td><td></td></tr> <tr bgcolor="#f0f0f0"><td><b>INDIC_STRIKE</b> enum value (defined in <a class="el" href="classQextScintillaBase.html">QextScintillaBase</a>)</td><td><a class="el" href="classQextScintillaBase.html">QextScintillaBase</a></td><td></td></tr>
<tr bgcolor="#f0f0f0"><td><b>INDIC_TT</b> enum value (defined in <a class="el" href="classQextScintillaBase.html">QextScintillaBase</a>)</td><td><a class="el" href="classQextScintillaBase.html">QextScintillaBase</a></td><td></td></tr> <tr bgcolor="#f0f0f0"><td><b>INDIC_TT</b> enum value (defined in <a class="el" href="classQextScintillaBase.html">QextScintillaBase</a>)</td><td><a class="el" href="classQextScintillaBase.html">QextScintillaBase</a></td><td></td></tr>
<tr bgcolor="#f0f0f0"><td><b>INDICS_MASK</b> enum value (defined in <a class="el" href="classQextScintillaBase.html">QextScintillaBase</a>)</td><td><a class="el" href="classQextScintillaBase.html">QextScintillaBase</a></td><td></td></tr> <tr bgcolor="#f0f0f0"><td><b>INDICS_MASK</b> enum value (defined in <a class="el" href="classQextScintillaBase.html">QextScintillaBase</a>)</td><td><a class="el" href="classQextScintillaBase.html">QextScintillaBase</a></td><td></td></tr>

@ -1019,8 +1019,8 @@ Inherited by <a class="el" href="classQextScintilla.html">QextScintilla</a>.
<b>INDIC_MAX</b> = 7 <b>INDIC_MAX</b> = 7
<li><a class="anchor" name="f0ac599400a5a4c4e87bcc6f3a5e46e99964f1af8196517a968b650be288dec6"></a><!-- doxytag: member="QextScintillaBase::INDIC_PLAIN" ref="f0ac599400a5a4c4e87bcc6f3a5e46e99964f1af8196517a968b650be288dec6" args="" --> <li><a class="anchor" name="f0ac599400a5a4c4e87bcc6f3a5e46e99964f1af8196517a968b650be288dec6"></a><!-- doxytag: member="QextScintillaBase::INDIC_PLAIN" ref="f0ac599400a5a4c4e87bcc6f3a5e46e99964f1af8196517a968b650be288dec6" args="" -->
<b>INDIC_PLAIN</b> = 0 <b>INDIC_PLAIN</b> = 0
<li><a class="anchor" name="f0ac599400a5a4c4e87bcc6f3a5e46e98b45e209c4c10f8a9000367b8362ae32"></a><!-- doxytag: member="QextScintillaBase::INDIC_STQUIGGLE" ref="f0ac599400a5a4c4e87bcc6f3a5e46e98b45e209c4c10f8a9000367b8362ae32" args="" --> <li><a class="anchor" name="f0ac599400a5a4c4e87bcc6f3a5e46e98b45e209c4c10f8a9000367b8362ae32"></a><!-- doxytag: member="QextScintillaBase::INDIC_SQUIGGLE" ref="f0ac599400a5a4c4e87bcc6f3a5e46e98b45e209c4c10f8a9000367b8362ae32" args="" -->
<b>INDIC_STQUIGGLE</b> = 1 <b>INDIC_SQUIGGLE</b> = 1
<li><a class="anchor" name="f0ac599400a5a4c4e87bcc6f3a5e46e9058cdeeca5dc565e845e8e30003b0b2c"></a><!-- doxytag: member="QextScintillaBase::INDIC_TT" ref="f0ac599400a5a4c4e87bcc6f3a5e46e9058cdeeca5dc565e845e8e30003b0b2c" args="" --> <li><a class="anchor" name="f0ac599400a5a4c4e87bcc6f3a5e46e9058cdeeca5dc565e845e8e30003b0b2c"></a><!-- doxytag: member="QextScintillaBase::INDIC_TT" ref="f0ac599400a5a4c4e87bcc6f3a5e46e9058cdeeca5dc565e845e8e30003b0b2c" args="" -->
<b>INDIC_TT</b> = 2 <b>INDIC_TT</b> = 2
<li><a class="anchor" name="f0ac599400a5a4c4e87bcc6f3a5e46e98e0b41acd0deff611a66050b0c1bfec2"></a><!-- doxytag: member="QextScintillaBase::INDIC_DIAGONAL" ref="f0ac599400a5a4c4e87bcc6f3a5e46e98e0b41acd0deff611a66050b0c1bfec2" args="" --> <li><a class="anchor" name="f0ac599400a5a4c4e87bcc6f3a5e46e98e0b41acd0deff611a66050b0c1bfec2"></a><!-- doxytag: member="QextScintillaBase::INDIC_DIAGONAL" ref="f0ac599400a5a4c4e87bcc6f3a5e46e98e0b41acd0deff611a66050b0c1bfec2" args="" -->
@ -1997,7 +1997,7 @@ Inherited by <a class="el" href="classQextScintilla.html">QextScintilla</a>.
<li>enum { <br> <li>enum { <br>
&nbsp;&nbsp;<b>INDIC_MAX</b> = 7, &nbsp;&nbsp;<b>INDIC_MAX</b> = 7,
<b>INDIC_PLAIN</b> = 0, <b>INDIC_PLAIN</b> = 0,
<b>INDIC_STQUIGGLE</b> = 1, <b>INDIC_SQUIGGLE</b> = 1,
<br> <br>
&nbsp;&nbsp;<b>INDIC_TT</b> = 2, &nbsp;&nbsp;<b>INDIC_TT</b> = 2,
<b>INDIC_DIAGONAL</b> = 3, <b>INDIC_DIAGONAL</b> = 3,

@ -132,8 +132,8 @@
#define SCE_TCL_COMMENT 1 #define SCE_TCL_COMMENT 1
#define SCE_TCL_COMMENTLINE 2 #define SCE_TCL_COMMENTLINE 2
#define SCE_TCL_NUMBER 3 #define SCE_TCL_NUMBER 3
#define SCE_TCL_WORD_IN_TQUOTE 4 #define SCE_TCL_WORD_IN_QUOTE 4
#define SCE_TCL_IN_TQUOTE 5 #define SCE_TCL_IN_QUOTE 5
#define SCE_TCL_OPERATOR 6 #define SCE_TCL_OPERATOR 6
#define SCE_TCL_IDENTIFIER 7 #define SCE_TCL_IDENTIFIER 7
#define SCE_TCL_SUBSTITUTION 8 #define SCE_TCL_SUBSTITUTION 8
@ -280,7 +280,7 @@
#define SCE_PL_VARIABLE_INDEXER 16 #define SCE_PL_VARIABLE_INDEXER 16
#define SCE_PL_REGEX 17 #define SCE_PL_REGEX 17
#define SCE_PL_REGSUBST 18 #define SCE_PL_REGSUBST 18
#define SCE_PL_LONGTQUOTE 19 #define SCE_PL_LONGQUOTE 19
#define SCE_PL_BACKTICKS 20 #define SCE_PL_BACKTICKS 20
#define SCE_PL_DATASECTION 21 #define SCE_PL_DATASECTION 21
#define SCE_PL_HERE_DELIM 22 #define SCE_PL_HERE_DELIM 22
@ -520,7 +520,7 @@
#define SCE_MATLAB_STRING 5 #define SCE_MATLAB_STRING 5
#define SCE_MATLAB_OPERATOR 6 #define SCE_MATLAB_OPERATOR 6
#define SCE_MATLAB_IDENTIFIER 7 #define SCE_MATLAB_IDENTIFIER 7
#define SCE_MATLAB_DOUBLETQUOTESTRING 8 #define SCE_MATLAB_DOUBLEQUOTESTRING 8
#define SCE_SCRIPTOL_DEFAULT 0 #define SCE_SCRIPTOL_DEFAULT 0
#define SCE_SCRIPTOL_WHITE 1 #define SCE_SCRIPTOL_WHITE 1
#define SCE_SCRIPTOL_COMMENTLINE 2 #define SCE_SCRIPTOL_COMMENTLINE 2
@ -691,7 +691,7 @@
#define SCE_CLW_BUILTIN_PROCEDURES_FUNCTION 11 #define SCE_CLW_BUILTIN_PROCEDURES_FUNCTION 11
#define SCE_CLW_STRUCTURE_DATA_TYPE 12 #define SCE_CLW_STRUCTURE_DATA_TYPE 12
#define SCE_CLW_ATTRIBUTE 13 #define SCE_CLW_ATTRIBUTE 13
#define SCE_CLW_STANDARD_ETQUATE 14 #define SCE_CLW_STANDARD_EQUATE 14
#define SCE_CLW_ERROR 15 #define SCE_CLW_ERROR 15
#define SCE_CLW_DEPRECATED 16 #define SCE_CLW_DEPRECATED 16
#define SCE_LOT_DEFAULT 0 #define SCE_LOT_DEFAULT 0
@ -933,7 +933,7 @@
#define SCE_REBOL_PREFACE 3 #define SCE_REBOL_PREFACE 3
#define SCE_REBOL_OPERATOR 4 #define SCE_REBOL_OPERATOR 4
#define SCE_REBOL_CHARACTER 5 #define SCE_REBOL_CHARACTER 5
#define SCE_REBOL_TQUOTEDSTRING 6 #define SCE_REBOL_QUOTEDSTRING 6
#define SCE_REBOL_BRACEDSTRING 7 #define SCE_REBOL_BRACEDSTRING 7
#define SCE_REBOL_NUMBER 8 #define SCE_REBOL_NUMBER 8
#define SCE_REBOL_PAIR 9 #define SCE_REBOL_PAIR 9
@ -977,7 +977,7 @@
#define SCE_SQL_USER2 20 #define SCE_SQL_USER2 20
#define SCE_SQL_USER3 21 #define SCE_SQL_USER3 21
#define SCE_SQL_USER4 22 #define SCE_SQL_USER4 22
#define SCE_SQL_TQUOTEDIDENTIFIER 23 #define SCE_SQL_QUOTEDIDENTIFIER 23
#define SCE_ST_DEFAULT 0 #define SCE_ST_DEFAULT 0
#define SCE_ST_STRING 1 #define SCE_ST_STRING 1
#define SCE_ST_NUMBER 2 #define SCE_ST_NUMBER 2

@ -214,7 +214,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
#define SCI_ENDUNDOACTION 2079 #define SCI_ENDUNDOACTION 2079
#define INDIC_MAX 7 #define INDIC_MAX 7
#define INDIC_PLAIN 0 #define INDIC_PLAIN 0
#define INDIC_STQUIGGLE 1 #define INDIC_SQUIGGLE 1
#define INDIC_TT 2 #define INDIC_TT 2
#define INDIC_DIAGONAL 3 #define INDIC_DIAGONAL 3
#define INDIC_STRIKE 4 #define INDIC_STRIKE 4

@ -1773,7 +1773,7 @@ public:
{ {
INDIC_MAX = 7, INDIC_MAX = 7,
INDIC_PLAIN = 0, INDIC_PLAIN = 0,
INDIC_STQUIGGLE = 1, INDIC_SQUIGGLE = 1,
INDIC_TT = 2, INDIC_TT = 2,
INDIC_DIAGONAL = 3, INDIC_DIAGONAL = 3,
INDIC_STRIKE = 4, INDIC_STRIKE = 4,

@ -13,7 +13,7 @@
void Indicator::Draw(Surface *surface, const PRectangle &rc, const PRectangle &rcLine) { void Indicator::Draw(Surface *surface, const PRectangle &rc, const PRectangle &rcLine) {
surface->PenColour(fore.allocated); surface->PenColour(fore.allocated);
int ymid = (rc.bottom + rc.top) / 2; int ymid = (rc.bottom + rc.top) / 2;
if (style == INDIC_STQUIGGLE) { if (style == INDIC_SQUIGGLE) {
surface->MoveTo(rc.left, rc.top); surface->MoveTo(rc.left, rc.top);
int x = rc.left + 2; int x = rc.left + 2;
int y = 2; int y = 2;

@ -277,7 +277,7 @@ static void ColouriseClarionDoc(unsigned int uiStartPos, int iLength, int iInitS
// If statement string is in the equate list // If statement string is in the equate list
if (wlStandardEquates.InList(cEquate)) { if (wlStandardEquates.InList(cEquate)) {
// Change to equate state // Change to equate state
scDoc.ChangeState(SCE_CLW_STANDARD_ETQUATE); scDoc.ChangeState(SCE_CLW_STANDARD_EQUATE);
} }
} }
// If the character is not a valid label character // If the character is not a valid label character
@ -322,7 +322,7 @@ static void ColouriseClarionDoc(unsigned int uiStartPos, int iLength, int iInitS
// Else if statement string is in the standard equate keyword list // Else if statement string is in the standard equate keyword list
else if (wlStandardEquates.InList(cStatement)) { else if (wlStandardEquates.InList(cStatement)) {
// Change the statement string to the standard equate state // Change the statement string to the standard equate state
scDoc.ChangeState(SCE_CLW_STANDARD_ETQUATE); scDoc.ChangeState(SCE_CLW_STANDARD_EQUATE);
} }
// Else if statement string is in the deprecated or legacy keyword list // Else if statement string is in the deprecated or legacy keyword list
else if (wlLegacyStatements.InList(cStatement)) { else if (wlLegacyStatements.InList(cStatement)) {
@ -380,7 +380,7 @@ static void ColouriseClarionDoc(unsigned int uiStartPos, int iLength, int iInitS
} }
} }
// Standard Equate State Handling // Standard Equate State Handling
else if (scDoc.state == SCE_CLW_STANDARD_ETQUATE) { else if (scDoc.state == SCE_CLW_STANDARD_EQUATE) {
if (!isalnum(scDoc.ch)) { if (!isalnum(scDoc.ch)) {
scDoc.SetState(SCE_CLW_DEFAULT); scDoc.SetState(SCE_CLW_DEFAULT);
} }

@ -355,7 +355,7 @@ void ColouriseCamlDoc(
else else
state2 = SCE_CAML_DEFAULT; state2 = SCE_CAML_DEFAULT;
chColor++; chColor++;
// enable "magic" (read-only) comment AS RETQUIRED // enable "magic" (read-only) comment AS REQUIRED
} else if (useMagic && sc.currentPos - chToken == 4 } else if (useMagic && sc.currentPos - chToken == 4
&& sc.Match('c') && sc.chPrev == 'r' && sc.GetRelative(-2) == '@') && sc.Match('c') && sc.chPrev == 'r' && sc.GetRelative(-2) == '@')
sc.state |= 0x10; // (switch to read-only comment style) sc.state |= 0x10; // (switch to read-only comment style)

@ -47,17 +47,17 @@ static int is_radix(int radix, int ch) {
typedef enum { typedef enum {
STATE_NULL, STATE_NULL,
ATOM_UNTQUOTED, ATOM_UNQUOTED,
ATOM_TQUOTED, ATOM_QUOTED,
ATOM_FUN_NAME, ATOM_FUN_NAME,
NODE_NAME_UNTQUOTED, NODE_NAME_UNQUOTED,
NODE_NAME_TQUOTED, NODE_NAME_QUOTED,
MACRO_START, MACRO_START,
MACRO_UNTQUOTED, MACRO_UNQUOTED,
MACRO_TQUOTED, MACRO_QUOTED,
RECORD_START, RECORD_START,
RECORD_UNTQUOTED, RECORD_UNQUOTED,
RECORD_TQUOTED, RECORD_QUOTED,
NUMERAL_START, NUMERAL_START,
NUMERAL_SIGNED, NUMERAL_SIGNED,
NUMERAL_RADIX_LITERAL, NUMERAL_RADIX_LITERAL,
@ -85,9 +85,9 @@ static void ColouriseErlangDoc(unsigned int startPos, int length, int initStyle,
case STATE_NULL: case STATE_NULL:
sc.SetState(SCE_ERLANG_DEFAULT); sc.SetState(SCE_ERLANG_DEFAULT);
break; break;
case ATOM_UNTQUOTED: case ATOM_UNQUOTED:
if ( '@' == sc.ch ){ if ( '@' == sc.ch ){
parse_state = NODE_NAME_UNTQUOTED; parse_state = NODE_NAME_UNQUOTED;
} else if ( !isalnum(sc.ch) && sc.ch != '_' ) { } else if ( !isalnum(sc.ch) && sc.ch != '_' ) {
char s[100]; char s[100];
sc.GetCurrent(s, sizeof(s)); sc.GetCurrent(s, sizeof(s));
@ -106,9 +106,9 @@ static void ColouriseErlangDoc(unsigned int startPos, int length, int initStyle,
} }
} }
break; break;
case ATOM_TQUOTED: case ATOM_QUOTED:
if ( '@' == sc.ch ){ if ( '@' == sc.ch ){
parse_state = NODE_NAME_TQUOTED; parse_state = NODE_NAME_QUOTED;
} else if ( '\'' == sc.ch && '\\' != sc.chPrev ) { } else if ( '\'' == sc.ch && '\\' != sc.chPrev ) {
sc.ChangeState(SCE_ERLANG_ATOM); sc.ChangeState(SCE_ERLANG_ATOM);
sc.ForwardSetState(SCE_ERLANG_DEFAULT); sc.ForwardSetState(SCE_ERLANG_DEFAULT);
@ -122,7 +122,7 @@ static void ColouriseErlangDoc(unsigned int startPos, int length, int initStyle,
parse_state = STATE_NULL; parse_state = STATE_NULL;
} }
break; break;
case NODE_NAME_TQUOTED: case NODE_NAME_QUOTED:
if ( '@' == sc.ch ) { if ( '@' == sc.ch ) {
sc.SetState(SCE_ERLANG_DEFAULT); sc.SetState(SCE_ERLANG_DEFAULT);
parse_state = STATE_NULL; parse_state = STATE_NULL;
@ -132,7 +132,7 @@ static void ColouriseErlangDoc(unsigned int startPos, int length, int initStyle,
parse_state = STATE_NULL; parse_state = STATE_NULL;
} }
break; break;
case NODE_NAME_UNTQUOTED: case NODE_NAME_UNQUOTED:
if ( '@' == sc.ch ) { if ( '@' == sc.ch ) {
sc.SetState(SCE_ERLANG_DEFAULT); sc.SetState(SCE_ERLANG_DEFAULT);
parse_state = STATE_NULL; parse_state = STATE_NULL;
@ -144,22 +144,22 @@ static void ColouriseErlangDoc(unsigned int startPos, int length, int initStyle,
break; break;
case RECORD_START: case RECORD_START:
if ( '\'' == sc.ch ) { if ( '\'' == sc.ch ) {
parse_state = RECORD_TQUOTED; parse_state = RECORD_QUOTED;
} else if (isalpha(sc.ch) && islower(sc.ch)) { } else if (isalpha(sc.ch) && islower(sc.ch)) {
parse_state = RECORD_UNTQUOTED; parse_state = RECORD_UNQUOTED;
} else { // error } else { // error
sc.SetState(SCE_ERLANG_DEFAULT); sc.SetState(SCE_ERLANG_DEFAULT);
parse_state = STATE_NULL; parse_state = STATE_NULL;
} }
break; break;
case RECORD_TQUOTED: case RECORD_QUOTED:
if ( '\'' == sc.ch && '\\' != sc.chPrev ) { if ( '\'' == sc.ch && '\\' != sc.chPrev ) {
sc.ChangeState(SCE_ERLANG_RECORD); sc.ChangeState(SCE_ERLANG_RECORD);
sc.ForwardSetState(SCE_ERLANG_DEFAULT); sc.ForwardSetState(SCE_ERLANG_DEFAULT);
parse_state = STATE_NULL; parse_state = STATE_NULL;
} }
break; break;
case RECORD_UNTQUOTED: case RECORD_UNQUOTED:
if ( !isalpha(sc.ch) && '_' != sc.ch ) { if ( !isalpha(sc.ch) && '_' != sc.ch ) {
sc.ChangeState(SCE_ERLANG_RECORD); sc.ChangeState(SCE_ERLANG_RECORD);
sc.SetState(SCE_ERLANG_DEFAULT); sc.SetState(SCE_ERLANG_DEFAULT);
@ -168,22 +168,22 @@ static void ColouriseErlangDoc(unsigned int startPos, int length, int initStyle,
break; break;
case MACRO_START: case MACRO_START:
if ( '\'' == sc.ch ) { if ( '\'' == sc.ch ) {
parse_state = MACRO_TQUOTED; parse_state = MACRO_QUOTED;
} else if (isalpha(sc.ch)) { } else if (isalpha(sc.ch)) {
parse_state = MACRO_UNTQUOTED; parse_state = MACRO_UNQUOTED;
} else { // error } else { // error
sc.SetState(SCE_ERLANG_DEFAULT); sc.SetState(SCE_ERLANG_DEFAULT);
parse_state = STATE_NULL; parse_state = STATE_NULL;
} }
break; break;
case MACRO_UNTQUOTED: case MACRO_UNQUOTED:
if ( !isalpha(sc.ch) && '_' != sc.ch ) { if ( !isalpha(sc.ch) && '_' != sc.ch ) {
sc.ChangeState(SCE_ERLANG_MACRO); sc.ChangeState(SCE_ERLANG_MACRO);
sc.SetState(SCE_ERLANG_DEFAULT); sc.SetState(SCE_ERLANG_DEFAULT);
parse_state = STATE_NULL; parse_state = STATE_NULL;
} }
break; break;
case MACRO_TQUOTED: case MACRO_QUOTED:
if ( '\'' == sc.ch && '\\' != sc.chPrev ) { if ( '\'' == sc.ch && '\\' != sc.chPrev ) {
sc.ChangeState(SCE_ERLANG_MACRO); sc.ChangeState(SCE_ERLANG_MACRO);
sc.ForwardSetState(SCE_ERLANG_DEFAULT); sc.ForwardSetState(SCE_ERLANG_DEFAULT);
@ -327,7 +327,7 @@ static void ColouriseErlangDoc(unsigned int startPos, int length, int initStyle,
} else if (sc.ch == '$') { } else if (sc.ch == '$') {
sc.SetState(SCE_ERLANG_CHARACTER); sc.SetState(SCE_ERLANG_CHARACTER);
} else if (sc.ch == '\'') { } else if (sc.ch == '\'') {
parse_state = ATOM_TQUOTED; parse_state = ATOM_QUOTED;
sc.SetState(SCE_ERLANG_UNKNOWN); sc.SetState(SCE_ERLANG_UNKNOWN);
} else if ( isdigit(sc.ch) ) { } else if ( isdigit(sc.ch) ) {
parse_state = NUMERAL_START; parse_state = NUMERAL_START;
@ -339,7 +339,7 @@ static void ColouriseErlangDoc(unsigned int startPos, int length, int initStyle,
} else if (isalpha(sc.ch) && isupper(sc.ch)) { } else if (isalpha(sc.ch) && isupper(sc.ch)) {
sc.SetState(SCE_ERLANG_VARIABLE); sc.SetState(SCE_ERLANG_VARIABLE);
} else if (isalpha(sc.ch)) { } else if (isalpha(sc.ch)) {
parse_state = ATOM_UNTQUOTED; parse_state = ATOM_UNQUOTED;
sc.SetState(SCE_ERLANG_UNKNOWN); sc.SetState(SCE_ERLANG_UNKNOWN);
} else if (isoperator(static_cast<char>(sc.ch)) || sc.ch == '\\') { } else if (isoperator(static_cast<char>(sc.ch)) || sc.ch == '\\') {
sc.SetState(SCE_ERLANG_OPERATOR); sc.SetState(SCE_ERLANG_OPERATOR);

@ -103,7 +103,7 @@ static void ColouriseMatlabOctaveDoc(
if (sc.ch == '\'' && sc.chPrev != '\\') { if (sc.ch == '\'' && sc.chPrev != '\\') {
sc.ForwardSetState(SCE_MATLAB_DEFAULT); sc.ForwardSetState(SCE_MATLAB_DEFAULT);
} }
} else if (sc.state == SCE_MATLAB_DOUBLETQUOTESTRING) { } else if (sc.state == SCE_MATLAB_DOUBLEQUOTESTRING) {
if (sc.ch == '"' && sc.chPrev != '\\') { if (sc.ch == '"' && sc.chPrev != '\\') {
sc.ForwardSetState(SCE_MATLAB_DEFAULT); sc.ForwardSetState(SCE_MATLAB_DEFAULT);
} }
@ -126,7 +126,7 @@ static void ColouriseMatlabOctaveDoc(
sc.SetState(SCE_MATLAB_STRING); sc.SetState(SCE_MATLAB_STRING);
} }
} else if (sc.ch == '"') { } else if (sc.ch == '"') {
sc.SetState(SCE_MATLAB_DOUBLETQUOTESTRING); sc.SetState(SCE_MATLAB_DOUBLEQUOTESTRING);
} else if (isdigit(sc.ch) || (sc.ch == '.' && isdigit(sc.chNext))) { } else if (isdigit(sc.ch) || (sc.ch == '.' && isdigit(sc.chNext))) {
sc.SetState(SCE_MATLAB_NUMBER); sc.SetState(SCE_MATLAB_NUMBER);
} else if (isalpha(sc.ch)) { } else if (isalpha(sc.ch)) {

@ -190,7 +190,7 @@ static void ColouriseRebolDoc(unsigned int startPos, int length, int initStyle,
} }
//--- Determine if the current state should terminate //--- Determine if the current state should terminate
if (sc.state == SCE_REBOL_TQUOTEDSTRING || sc.state == SCE_REBOL_CHARACTER) { if (sc.state == SCE_REBOL_QUOTEDSTRING || sc.state == SCE_REBOL_CHARACTER) {
if (sc.ch == '^' && sc.chNext == '\"') { if (sc.ch == '^' && sc.chNext == '\"') {
sc.Forward(); sc.Forward();
} else if (sc.ch == '\"') { } else if (sc.ch == '\"') {
@ -243,7 +243,7 @@ static void ColouriseRebolDoc(unsigned int startPos, int length, int initStyle,
dotCount = 0; dotCount = 0;
sc.SetState(SCE_REBOL_NUMBER); sc.SetState(SCE_REBOL_NUMBER);
} else if (sc.ch == '\"') { } else if (sc.ch == '\"') {
sc.SetState(SCE_REBOL_TQUOTEDSTRING); sc.SetState(SCE_REBOL_QUOTEDSTRING);
} else if (sc.ch == '{') { } else if (sc.ch == '{') {
sc.SetState(blockComment ? SCE_REBOL_COMMENTBLOCK : SCE_REBOL_BRACEDSTRING); sc.SetState(blockComment ? SCE_REBOL_COMMENTBLOCK : SCE_REBOL_BRACEDSTRING);
++stringLevel; ++stringLevel;

@ -100,7 +100,7 @@ static void ColouriseSQLDoc(unsigned int startPos, int length, int initStyle, Wo
sc.SetState(nextState); sc.SetState(nextState);
} }
break; break;
case SCE_SQL_TQUOTEDIDENTIFIER: case SCE_SQL_QUOTEDIDENTIFIER:
if (sc.ch == 0x60) { if (sc.ch == 0x60) {
if (sc.chNext == 0x60) { if (sc.chNext == 0x60) {
sc.Forward(); // Ignore it sc.Forward(); // Ignore it
@ -181,7 +181,7 @@ static void ColouriseSQLDoc(unsigned int startPos, int length, int initStyle, Wo
} else if (IsAWordStart(sc.ch)) { } else if (IsAWordStart(sc.ch)) {
sc.SetState(SCE_SQL_IDENTIFIER); sc.SetState(SCE_SQL_IDENTIFIER);
} else if (sc.ch == 0x60 && sqlBackticksIdentifier) { } else if (sc.ch == 0x60 && sqlBackticksIdentifier) {
sc.SetState(SCE_SQL_TQUOTEDIDENTIFIER); sc.SetState(SCE_SQL_QUOTEDIDENTIFIER);
} else if (sc.Match('/', '*')) { } else if (sc.Match('/', '*')) {
if (sc.Match("/**") || sc.Match("/*!")) { // Support of Doxygen doc. style if (sc.Match("/**") || sc.Match("/*!")) { // Support of Doxygen doc. style
sc.SetState(SCE_SQL_COMMENTDOC); sc.SetState(SCE_SQL_COMMENTDOC);

@ -50,7 +50,7 @@
#include "Scintilla.h" #include "Scintilla.h"
#include "SciLexer.h" #include "SciLexer.h"
static const int T3_SINGLE_TQUOTE = 1; static const int T3_SINGLE_QUOTE = 1;
static const int T3_INT_EXPRESSION = 2; static const int T3_INT_EXPRESSION = 2;
static inline bool IsEOL(const int ch, const int chNext) { static inline bool IsEOL(const int ch, const int chNext) {
@ -106,7 +106,7 @@ static void ColouriseTADSHTMLString(StyleContext &sc, int &lineState) {
int endState = sc.state; int endState = sc.state;
int chQuote = sc.ch; int chQuote = sc.ch;
if (endState == SCE_T3_HTML_STRING) { if (endState == SCE_T3_HTML_STRING) {
if (lineState&T3_SINGLE_TQUOTE) { if (lineState&T3_SINGLE_QUOTE) {
endState = SCE_T3_S_STRING; endState = SCE_T3_S_STRING;
chQuote = '"'; chQuote = '"';
} else if (lineState&T3_INT_EXPRESSION) { } else if (lineState&T3_INT_EXPRESSION) {
@ -171,7 +171,7 @@ static void ColouriseTADS3HTMLTag(StyleContext &sc, int &lineState) {
sc.SetState(SCE_T3_HTML_DEFAULT); sc.SetState(SCE_T3_HTML_DEFAULT);
break; break;
case SCE_T3_HTML_DEFAULT: case SCE_T3_HTML_DEFAULT:
if (lineState&T3_SINGLE_TQUOTE) { if (lineState&T3_SINGLE_QUOTE) {
endState = SCE_T3_S_STRING; endState = SCE_T3_S_STRING;
chQuote = '\''; chQuote = '\'';
chString = '"'; chString = '"';
@ -261,7 +261,7 @@ static void ColouriseTADS3MsgParam(StyleContext &sc, int &lineState) {
sc.Forward(); sc.Forward();
break; break;
case SCE_T3_MSG_PARAM: case SCE_T3_MSG_PARAM:
if (lineState&T3_SINGLE_TQUOTE) { if (lineState&T3_SINGLE_QUOTE) {
endState = SCE_T3_S_STRING; endState = SCE_T3_S_STRING;
chQuote = '\''; chQuote = '\'';
} else if (lineState&T3_INT_EXPRESSION) { } else if (lineState&T3_INT_EXPRESSION) {
@ -301,7 +301,7 @@ static void ColouriseTADS3LibDirective(StyleContext &sc, int &lineState) {
sc.Forward(2); sc.Forward(2);
break; break;
case SCE_T3_LIB_DIRECTIVE: case SCE_T3_LIB_DIRECTIVE:
if (lineState&T3_SINGLE_TQUOTE) { if (lineState&T3_SINGLE_QUOTE) {
initState = SCE_T3_S_STRING; initState = SCE_T3_S_STRING;
chQuote = '\''; chQuote = '\'';
} else { } else {
@ -337,10 +337,10 @@ static void ColouriseTADS3String(StyleContext &sc, int &lineState) {
} else { } else {
sc.SetState(SCE_T3_X_STRING); sc.SetState(SCE_T3_X_STRING);
} }
lineState &= ~T3_SINGLE_TQUOTE; lineState &= ~T3_SINGLE_QUOTE;
} else { } else {
sc.SetState(SCE_T3_S_STRING); sc.SetState(SCE_T3_S_STRING);
lineState |= T3_SINGLE_TQUOTE; lineState |= T3_SINGLE_QUOTE;
} }
sc.Forward(); sc.Forward();
break; break;
@ -528,7 +528,7 @@ static void ColouriseTADS3Doc(unsigned int startPos, int length, int initStyle,
&& sc.Match('>', '>')) { && sc.Match('>', '>')) {
sc.Forward(2); sc.Forward(2);
sc.SetState(SCE_T3_D_STRING); sc.SetState(SCE_T3_D_STRING);
lineState &= ~(T3_SINGLE_TQUOTE|T3_INT_EXPRESSION); lineState &= ~(T3_SINGLE_QUOTE|T3_INT_EXPRESSION);
} else if (IsATADS3Operator(sc.ch)) { } else if (IsATADS3Operator(sc.ch)) {
if (sc.state == SCE_T3_X_DEFAULT) { if (sc.state == SCE_T3_X_DEFAULT) {
if (sc.ch == '(') { if (sc.ch == '(') {

@ -43,7 +43,7 @@ static void ColouriseTCLDoc(unsigned int startPos, int length, int , WordList *k
bool foldComment = styler.GetPropertyInt("fold.comment") != 0; bool foldComment = styler.GetPropertyInt("fold.comment") != 0;
bool commentLevel = false; bool commentLevel = false;
bool subBrace = false; // substitution begin with a brace ${.....} bool subBrace = false; // substitution begin with a brace ${.....}
enum tLineState {LS_DEFAULT, LS_OPEN_COMMENT, LS_OPEN_DOUBLE_TQUOTE, LS_COMMENT_BOX, LS_MASK_STATE = 0xf, enum tLineState {LS_DEFAULT, LS_OPEN_COMMENT, LS_OPEN_DOUBLE_QUOTE, LS_COMMENT_BOX, LS_MASK_STATE = 0xf,
LS_COMMAND_EXPECTED = 16, LS_BRACE_ONLY = 32 } lineState = LS_DEFAULT; LS_COMMAND_EXPECTED = 16, LS_BRACE_ONLY = 32 } lineState = LS_DEFAULT;
bool prevSlash = false; bool prevSlash = false;
int currentLevel = 0; int currentLevel = 0;
@ -89,8 +89,8 @@ next:
sc.SetState(SCE_TCL_DEFAULT); sc.SetState(SCE_TCL_DEFAULT);
if (lineState == LS_OPEN_COMMENT) if (lineState == LS_OPEN_COMMENT)
sc.SetState(SCE_TCL_COMMENTLINE); sc.SetState(SCE_TCL_COMMENTLINE);
else if (lineState == LS_OPEN_DOUBLE_TQUOTE) else if (lineState == LS_OPEN_DOUBLE_QUOTE)
sc.SetState(SCE_TCL_IN_TQUOTE); sc.SetState(SCE_TCL_IN_QUOTE);
else if (lineState == LS_COMMENT_BOX && (sc.ch == '#' || (sc.ch == ' ' && sc.chNext=='#'))) else if (lineState == LS_COMMENT_BOX && (sc.ch == '#' || (sc.ch == ' ' && sc.chNext=='#')))
sc.SetState(SCE_TCL_COMMENT_BOX); sc.SetState(SCE_TCL_COMMENT_BOX);
lineState = LS_DEFAULT; lineState = LS_DEFAULT;
@ -144,16 +144,16 @@ next:
w[strlen(w)-1]=0; w[strlen(w)-1]=0;
while(*s == ':') // ignore leading : like in ::set a 10 while(*s == ':') // ignore leading : like in ::set a 10
++s; ++s;
bool quote = sc.state == SCE_TCL_IN_TQUOTE; bool quote = sc.state == SCE_TCL_IN_QUOTE;
if (commentLevel || expected) { if (commentLevel || expected) {
if (keywords.InList(s)) { if (keywords.InList(s)) {
sc.ChangeState(quote ? SCE_TCL_WORD_IN_TQUOTE : SCE_TCL_WORD); sc.ChangeState(quote ? SCE_TCL_WORD_IN_QUOTE : SCE_TCL_WORD);
} else if (keywords2.InList(s)) { } else if (keywords2.InList(s)) {
sc.ChangeState(quote ? SCE_TCL_WORD_IN_TQUOTE : SCE_TCL_WORD2); sc.ChangeState(quote ? SCE_TCL_WORD_IN_QUOTE : SCE_TCL_WORD2);
} else if (keywords3.InList(s)) { } else if (keywords3.InList(s)) {
sc.ChangeState(quote ? SCE_TCL_WORD_IN_TQUOTE : SCE_TCL_WORD3); sc.ChangeState(quote ? SCE_TCL_WORD_IN_QUOTE : SCE_TCL_WORD3);
} else if (keywords4.InList(s)) { } else if (keywords4.InList(s)) {
sc.ChangeState(quote ? SCE_TCL_WORD_IN_TQUOTE : SCE_TCL_WORD4); sc.ChangeState(quote ? SCE_TCL_WORD_IN_QUOTE : SCE_TCL_WORD4);
} else if (sc.GetRelative(-static_cast<int>(strlen(s))-1) == '{' && } else if (sc.GetRelative(-static_cast<int>(strlen(s))-1) == '{' &&
keywords5.InList(s) && sc.ch == '}') { // {keyword} exactly no spaces keywords5.InList(s) && sc.ch == '}') { // {keyword} exactly no spaces
sc.ChangeState(SCE_TCL_EXPAND); sc.ChangeState(SCE_TCL_EXPAND);
@ -169,7 +169,7 @@ next:
} }
} }
expected = false; expected = false;
sc.SetState(quote ? SCE_TCL_IN_TQUOTE : SCE_TCL_DEFAULT); sc.SetState(quote ? SCE_TCL_IN_QUOTE : SCE_TCL_DEFAULT);
} else if (sc.state == SCE_TCL_MODIFIER || sc.state == SCE_TCL_IDENTIFIER) { } else if (sc.state == SCE_TCL_MODIFIER || sc.state == SCE_TCL_IDENTIFIER) {
sc.SetState(SCE_TCL_DEFAULT); sc.SetState(SCE_TCL_DEFAULT);
} }
@ -199,8 +199,8 @@ next:
styler.SetLevel(currentLine, flag + previousLevel + SC_FOLDLEVELBASE + (currentLevel << 17) + (commentLevel << 16)); styler.SetLevel(currentLine, flag + previousLevel + SC_FOLDLEVELBASE + (currentLevel << 17) + (commentLevel << 16));
// Update the line state, so it can be seen by next line // Update the line state, so it can be seen by next line
if (sc.state == SCE_TCL_IN_TQUOTE) if (sc.state == SCE_TCL_IN_QUOTE)
lineState = LS_OPEN_DOUBLE_TQUOTE; lineState = LS_OPEN_DOUBLE_QUOTE;
else { else {
if (prevSlash) { if (prevSlash) {
if (isComment(sc.state)) if (isComment(sc.state))
@ -213,8 +213,8 @@ next:
(expected ? LS_COMMAND_EXPECTED : 0) | lineState); (expected ? LS_COMMAND_EXPECTED : 0) | lineState);
if (lineState == LS_COMMENT_BOX) if (lineState == LS_COMMENT_BOX)
sc.ForwardSetState(SCE_TCL_COMMENT_BOX); sc.ForwardSetState(SCE_TCL_COMMENT_BOX);
else if (lineState == LS_OPEN_DOUBLE_TQUOTE) else if (lineState == LS_OPEN_DOUBLE_QUOTE)
sc.ForwardSetState(SCE_TCL_IN_TQUOTE); sc.ForwardSetState(SCE_TCL_IN_QUOTE);
else else
sc.ForwardSetState(SCE_TCL_DEFAULT); sc.ForwardSetState(SCE_TCL_DEFAULT);
prevSlash = false; prevSlash = false;
@ -233,7 +233,7 @@ next:
continue; continue;
if (sc.atLineStart) { if (sc.atLineStart) {
visibleChars = false; visibleChars = false;
if (sc.state!=SCE_TCL_IN_TQUOTE && !isComment(sc.state)) if (sc.state!=SCE_TCL_IN_QUOTE && !isComment(sc.state))
{ {
sc.SetState(SCE_TCL_DEFAULT); sc.SetState(SCE_TCL_DEFAULT);
expected = IsAWordStart(sc.ch)|| isspacechar(static_cast<unsigned char>(sc.ch)); expected = IsAWordStart(sc.ch)|| isspacechar(static_cast<unsigned char>(sc.ch));
@ -245,7 +245,7 @@ next:
if (!IsANumberChar(sc.ch)) if (!IsANumberChar(sc.ch))
sc.SetState(SCE_TCL_DEFAULT); sc.SetState(SCE_TCL_DEFAULT);
break; break;
case SCE_TCL_IN_TQUOTE: case SCE_TCL_IN_QUOTE:
if (sc.ch == '"') { if (sc.ch == '"') {
sc.ForwardSetState(SCE_TCL_DEFAULT); sc.ForwardSetState(SCE_TCL_DEFAULT);
visibleChars = true; // necessary if a " is the first and only character on a line visibleChars = true; // necessary if a " is the first and only character on a line
@ -253,7 +253,7 @@ next:
} else if (sc.ch == '[' || sc.ch == ']' || sc.ch == '$') { } else if (sc.ch == '[' || sc.ch == ']' || sc.ch == '$') {
sc.SetState(SCE_TCL_OPERATOR); sc.SetState(SCE_TCL_OPERATOR);
expected = sc.ch == '['; expected = sc.ch == '[';
sc.ForwardSetState(SCE_TCL_IN_TQUOTE); sc.ForwardSetState(SCE_TCL_IN_QUOTE);
goto next; goto next;
} }
continue; continue;
@ -264,7 +264,7 @@ next:
if (sc.ch == '#') { if (sc.ch == '#') {
if (visibleChars) { if (visibleChars) {
if (sc.state != SCE_TCL_IN_TQUOTE && expected) if (sc.state != SCE_TCL_IN_QUOTE && expected)
sc.SetState(SCE_TCL_COMMENT); sc.SetState(SCE_TCL_COMMENT);
} else { } else {
sc.SetState(SCE_TCL_COMMENTLINE); sc.SetState(SCE_TCL_COMMENTLINE);
@ -293,7 +293,7 @@ next:
} else { } else {
switch (sc.ch) { switch (sc.ch) {
case '\"': case '\"':
sc.SetState(SCE_TCL_IN_TQUOTE); sc.SetState(SCE_TCL_IN_QUOTE);
break; break;
case '{': case '{':
sc.SetState(SCE_TCL_OPERATOR); sc.SetState(SCE_TCL_OPERATOR);

@ -124,7 +124,7 @@ void ViewStyle::Init() {
fontNames.Clear(); fontNames.Clear();
ResetDefaultStyle(); ResetDefaultStyle();
indicators[0].style = INDIC_STQUIGGLE; indicators[0].style = INDIC_SQUIGGLE;
indicators[0].fore = ColourDesired(0, 0x7f, 0); indicators[0].fore = ColourDesired(0, 0x7f, 0);
indicators[1].style = INDIC_TT; indicators[1].style = INDIC_TT;
indicators[1].fore = ColourDesired(0, 0, 0xff); indicators[1].fore = ColourDesired(0, 0, 0xff);

Loading…
Cancel
Save