summaryrefslogtreecommitdiffstats
path: root/src/LexErlang.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/LexErlang.cpp')
-rwxr-xr-xsrc/LexErlang.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/LexErlang.cpp b/src/LexErlang.cpp
index 9444eb9..633ea96 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_UNQUOTED,
- ATOM_QUOTED,
+ ATOM_UNTQUOTED,
+ ATOM_TQUOTED,
ATOM_FUN_NAME,
- NODE_NAME_UNQUOTED,
- NODE_NAME_QUOTED,
+ NODE_NAME_UNTQUOTED,
+ NODE_NAME_TQUOTED,
MACRO_START,
- MACRO_UNQUOTED,
- MACRO_QUOTED,
+ MACRO_UNTQUOTED,
+ MACRO_TQUOTED,
RECORD_START,
- RECORD_UNQUOTED,
- RECORD_QUOTED,
+ RECORD_UNTQUOTED,
+ RECORD_TQUOTED,
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_UNQUOTED:
+ case ATOM_UNTQUOTED:
if ( '@' == sc.ch ){
- parse_state = NODE_NAME_UNQUOTED;
+ parse_state = NODE_NAME_UNTQUOTED;
} 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_QUOTED:
+ case ATOM_TQUOTED:
if ( '@' == sc.ch ){
- parse_state = NODE_NAME_QUOTED;
+ parse_state = NODE_NAME_TQUOTED;
} 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_QUOTED:
+ case NODE_NAME_TQUOTED:
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_UNQUOTED:
+ case NODE_NAME_UNTQUOTED:
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_QUOTED;
+ parse_state = RECORD_TQUOTED;
} else if (isalpha(sc.ch) && islower(sc.ch)) {
- parse_state = RECORD_UNQUOTED;
+ parse_state = RECORD_UNTQUOTED;
} else { // error
sc.SetState(SCE_ERLANG_DEFAULT);
parse_state = STATE_NULL;
}
break;
- case RECORD_QUOTED:
+ case RECORD_TQUOTED:
if ( '\'' == sc.ch && '\\' != sc.chPrev ) {
sc.ChangeState(SCE_ERLANG_RECORD);
sc.ForwardSetState(SCE_ERLANG_DEFAULT);
parse_state = STATE_NULL;
}
break;
- case RECORD_UNQUOTED:
+ case RECORD_UNTQUOTED:
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_QUOTED;
+ parse_state = MACRO_TQUOTED;
} else if (isalpha(sc.ch)) {
- parse_state = MACRO_UNQUOTED;
+ parse_state = MACRO_UNTQUOTED;
} else { // error
sc.SetState(SCE_ERLANG_DEFAULT);
parse_state = STATE_NULL;
}
break;
- case MACRO_UNQUOTED:
+ case MACRO_UNTQUOTED:
if ( !isalpha(sc.ch) && '_' != sc.ch ) {
sc.ChangeState(SCE_ERLANG_MACRO);
sc.SetState(SCE_ERLANG_DEFAULT);
parse_state = STATE_NULL;
}
break;
- case MACRO_QUOTED:
+ case MACRO_TQUOTED:
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_QUOTED;
+ parse_state = ATOM_TQUOTED;
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_UNQUOTED;
+ parse_state = ATOM_UNTQUOTED;
sc.SetState(SCE_ERLANG_UNKNOWN);
} else if (isoperator(static_cast<char>(sc.ch)) || sc.ch == '\\') {
sc.SetState(SCE_ERLANG_OPERATOR);