diff options
author | mitchell <unknown> | 2019-05-27 18:34:00 -0400 |
---|---|---|
committer | mitchell <unknown> | 2019-05-27 18:34:00 -0400 |
commit | f84f2a3daef704cb309009f51b5da9f325979f68 (patch) | |
tree | a4746a5660d9c015e96e0f3e9fce600e6bff4ad0 /include | |
parent | 920f6ebb1d99186ea0699c97235667239604f278 (diff) | |
download | scintilla-mirror-f84f2a3daef704cb309009f51b5da9f325979f68.tar.gz |
Backport: Feature [feature-requests:#1280]. Lexer added for X12.
Backport of changeset 7486:a99fa007805f, but with LexerX12::Terminator struct
definition not having default values, which is a C++14 feature.
Diffstat (limited to 'include')
-rw-r--r-- | include/SciLexer.h | 10 | ||||
-rw-r--r-- | include/Scintilla.iface | 12 |
2 files changed, 22 insertions, 0 deletions
diff --git a/include/SciLexer.h b/include/SciLexer.h index ae20985ce..08b4da6d6 100644 --- a/include/SciLexer.h +++ b/include/SciLexer.h @@ -140,6 +140,7 @@ #define SCLEX_SAS 125 #define SCLEX_NIM 126 #define SCLEX_CIL 127 +#define SCLEX_X12 128 #define SCLEX_LPEG 999 #define SCLEX_AUTOMATIC 1000 #define SCE_P_DEFAULT 0 @@ -1886,6 +1887,15 @@ #define SCE_CIL_OPERATOR 8 #define SCE_CIL_IDENTIFIER 9 #define SCE_CIL_STRINGEOL 10 +#define SCE_X12_DEFAULT 0 +#define SCE_X12_BAD 1 +#define SCE_X12_ENVELOPE 2 +#define SCE_X12_FUNCTIONGROUP 3 +#define SCE_X12_TRANSACTIONSET 4 +#define SCE_X12_SEGMENTHEADER 5 +#define SCE_X12_SEGMENTEND 6 +#define SCE_X12_SEP_ELEMENT 7 +#define SCE_X12_SEP_SUBELEMENT 8 /* --Autogenerated -- end of section automatically generated from Scintilla.iface */ #endif diff --git a/include/Scintilla.iface b/include/Scintilla.iface index c009371c1..fdffa4009 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -2976,6 +2976,7 @@ val SCLEX_STATA=124 val SCLEX_SAS=125 val SCLEX_NIM=126 val SCLEX_CIL=127 +val SCLEX_X12=128 val SCLEX_LPEG=999 # When a lexer specifies its language as SCLEX_AUTOMATIC it receives a @@ -4962,6 +4963,17 @@ val SCE_CIL_LABEL=7 val SCE_CIL_OPERATOR=8 val SCE_CIL_IDENTIFIER=9 val SCE_CIL_STRINGEOL=10 +# Lexical states for SCLEX_X12 +lex X12=SCLEX_X12 SCE_X12_ +val SCE_X12_DEFAULT=0 +val SCE_X12_BAD=1 +val SCE_X12_ENVELOPE=2 +val SCE_X12_FUNCTIONGROUP=3 +val SCE_X12_TRANSACTIONSET=4 +val SCE_X12_SEGMENTHEADER=5 +val SCE_X12_SEGMENTEND=6 +val SCE_X12_SEP_ELEMENT=7 +val SCE_X12_SEP_SUBELEMENT=8 # Events |