diff options
author | Darrell Anderson <[email protected]> | 2012-04-13 01:46:01 -0500 |
---|---|---|
committer | Darrell Anderson <[email protected]> | 2012-04-13 01:46:01 -0500 |
commit | fd8d92656e630a44ed99688fc01f1896836b4c52 (patch) | |
tree | 1b67eaa5e16ad5056124ab080b4f4a3e96d74fc0 /src/LexErlang.cpp | |
parent | 29c4424ab987df40a8a3df93165f84561dee1a43 (diff) | |
download | tqscintilla-fd8d92656e630a44ed99688fc01f1896836b4c52.tar.gz tqscintilla-fd8d92656e630a44ed99688fc01f1896836b4c52.zip |
Fix inadvertent "TQ" changes.
Diffstat (limited to 'src/LexErlang.cpp')
-rwxr-xr-x | src/LexErlang.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/src/LexErlang.cpp b/src/LexErlang.cpp index 633ea96..9444eb9 100755 --- a/src/LexErlang.cpp +++ b/src/LexErlang.cpp @@ -47,17 +47,17 @@ static int is_radix(int radix, int ch) { typedef enum { STATE_NULL, - ATOM_UNTQUOTED, - ATOM_TQUOTED, + ATOM_UNQUOTED, + ATOM_QUOTED, ATOM_FUN_NAME, - NODE_NAME_UNTQUOTED, - NODE_NAME_TQUOTED, + NODE_NAME_UNQUOTED, + NODE_NAME_QUOTED, MACRO_START, - MACRO_UNTQUOTED, - MACRO_TQUOTED, + MACRO_UNQUOTED, + MACRO_QUOTED, RECORD_START, - RECORD_UNTQUOTED, - RECORD_TQUOTED, + RECORD_UNQUOTED, + RECORD_QUOTED, NUMERAL_START, NUMERAL_SIGNED, NUMERAL_RADIX_LITERAL, @@ -85,9 +85,9 @@ static void ColouriseErlangDoc(unsigned int startPos, int length, int initStyle, case STATE_NULL: sc.SetState(SCE_ERLANG_DEFAULT); break; - case ATOM_UNTQUOTED: + case ATOM_UNQUOTED: if ( '@' == sc.ch ){ - parse_state = NODE_NAME_UNTQUOTED; + parse_state = NODE_NAME_UNQUOTED; } else if ( !isalnum(sc.ch) && sc.ch != '_' ) { char s[100]; sc.GetCurrent(s, sizeof(s)); @@ -106,9 +106,9 @@ static void ColouriseErlangDoc(unsigned int startPos, int length, int initStyle, } } break; - case ATOM_TQUOTED: + case ATOM_QUOTED: if ( '@' == sc.ch ){ - parse_state = NODE_NAME_TQUOTED; + parse_state = NODE_NAME_QUOTED; } else if ( '\'' == sc.ch && '\\' != sc.chPrev ) { sc.ChangeState(SCE_ERLANG_ATOM); sc.ForwardSetState(SCE_ERLANG_DEFAULT); @@ -122,7 +122,7 @@ static void ColouriseErlangDoc(unsigned int startPos, int length, int initStyle, parse_state = STATE_NULL; } break; - case NODE_NAME_TQUOTED: + case NODE_NAME_QUOTED: if ( '@' == sc.ch ) { sc.SetState(SCE_ERLANG_DEFAULT); parse_state = STATE_NULL; @@ -132,7 +132,7 @@ static void ColouriseErlangDoc(unsigned int startPos, int length, int initStyle, parse_state = STATE_NULL; } break; - case NODE_NAME_UNTQUOTED: + case NODE_NAME_UNQUOTED: if ( '@' == sc.ch ) { sc.SetState(SCE_ERLANG_DEFAULT); parse_state = STATE_NULL; @@ -144,22 +144,22 @@ static void ColouriseErlangDoc(unsigned int startPos, int length, int initStyle, break; case RECORD_START: if ( '\'' == sc.ch ) { - parse_state = RECORD_TQUOTED; + parse_state = RECORD_QUOTED; } else if (isalpha(sc.ch) && islower(sc.ch)) { - parse_state = RECORD_UNTQUOTED; + parse_state = RECORD_UNQUOTED; } else { // error sc.SetState(SCE_ERLANG_DEFAULT); parse_state = STATE_NULL; } break; - case RECORD_TQUOTED: + case RECORD_QUOTED: if ( '\'' == sc.ch && '\\' != sc.chPrev ) { sc.ChangeState(SCE_ERLANG_RECORD); sc.ForwardSetState(SCE_ERLANG_DEFAULT); parse_state = STATE_NULL; } break; - case RECORD_UNTQUOTED: + case RECORD_UNQUOTED: if ( !isalpha(sc.ch) && '_' != sc.ch ) { sc.ChangeState(SCE_ERLANG_RECORD); sc.SetState(SCE_ERLANG_DEFAULT); @@ -168,22 +168,22 @@ static void ColouriseErlangDoc(unsigned int startPos, int length, int initStyle, break; case MACRO_START: if ( '\'' == sc.ch ) { - parse_state = MACRO_TQUOTED; + parse_state = MACRO_QUOTED; } else if (isalpha(sc.ch)) { - parse_state = MACRO_UNTQUOTED; + parse_state = MACRO_UNQUOTED; } else { // error sc.SetState(SCE_ERLANG_DEFAULT); parse_state = STATE_NULL; } break; - case MACRO_UNTQUOTED: + case MACRO_UNQUOTED: if ( !isalpha(sc.ch) && '_' != sc.ch ) { sc.ChangeState(SCE_ERLANG_MACRO); sc.SetState(SCE_ERLANG_DEFAULT); parse_state = STATE_NULL; } break; - case MACRO_TQUOTED: + case MACRO_QUOTED: if ( '\'' == sc.ch && '\\' != sc.chPrev ) { sc.ChangeState(SCE_ERLANG_MACRO); sc.ForwardSetState(SCE_ERLANG_DEFAULT); @@ -327,7 +327,7 @@ static void ColouriseErlangDoc(unsigned int startPos, int length, int initStyle, } else if (sc.ch == '$') { sc.SetState(SCE_ERLANG_CHARACTER); } else if (sc.ch == '\'') { - parse_state = ATOM_TQUOTED; + parse_state = ATOM_QUOTED; sc.SetState(SCE_ERLANG_UNKNOWN); } else if ( isdigit(sc.ch) ) { 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)) { sc.SetState(SCE_ERLANG_VARIABLE); } else if (isalpha(sc.ch)) { - parse_state = ATOM_UNTQUOTED; + parse_state = ATOM_UNQUOTED; sc.SetState(SCE_ERLANG_UNKNOWN); } else if (isoperator(static_cast<char>(sc.ch)) || sc.ch == '\\') { sc.SetState(SCE_ERLANG_OPERATOR); |