play around with Scintilla and Lexilla
This commit is contained in:
10
3rdparty/lexilla532/lexilla/test/examples/cobol/229.cob
vendored
Normal file
10
3rdparty/lexilla532/lexilla/test/examples/cobol/229.cob
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
* Fix string style to not continue to next line
|
||||
|
||||
DISPLAY MESSAGE BOX
|
||||
"The following process must be applied to Earnings, Deduct
|
||||
- "ions and Company Contributions separately."
|
||||
|
||||
LP61A DISPLAY MESSAGE BOX
|
||||
lp61b "S*** strives to continually develop and improve its pr
|
||||
LP61B - "oducts and services to deliver more value to our custo
|
||||
LP61B - "mers."
|
11
3rdparty/lexilla532/lexilla/test/examples/cobol/229.cob.folded
vendored
Normal file
11
3rdparty/lexilla532/lexilla/test/examples/cobol/229.cob.folded
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
0 400 0 * Fix string style to not continue to next line
|
||||
0 400 0
|
||||
0 400 0 DISPLAY MESSAGE BOX
|
||||
0 400 0 "The following process must be applied to Earnings, Deduct
|
||||
0 400 0 - "ions and Company Contributions separately."
|
||||
0 400 0
|
||||
0 400 0 LP61A DISPLAY MESSAGE BOX
|
||||
0 400 0 lp61b "S*** strives to continually develop and improve its pr
|
||||
0 400 0 LP61B - "oducts and services to deliver more value to our custo
|
||||
0 400 0 LP61B - "mers."
|
||||
0 400 0
|
10
3rdparty/lexilla532/lexilla/test/examples/cobol/229.cob.styled
vendored
Normal file
10
3rdparty/lexilla532/lexilla/test/examples/cobol/229.cob.styled
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
{0} {2}* Fix string style to not continue to next line{0}
|
||||
|
||||
{11}DISPLAY{0} {11}MESSAGE{0} {11}BOX{0}
|
||||
{6}"The following process must be applied to Earnings, Deduct{0}
|
||||
{10}-{0} {6}"ions and Company Contributions separately."{0}
|
||||
|
||||
{11}LP61A{0} {11}DISPLAY{0} {11}MESSAGE{0} {11}BOX{0}
|
||||
{11}lp61b{0} {6}"S*** strives to continually develop and improve its pr{0}
|
||||
{11}LP61B{0} {10}-{0} {6}"oducts and services to deliver more value to our custo{0}
|
||||
{11}LP61B{0} {10}-{0} {6}"mers."{0}
|
7
3rdparty/lexilla532/lexilla/test/examples/cobol/230.cob
vendored
Normal file
7
3rdparty/lexilla532/lexilla/test/examples/cobol/230.cob
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
* Keywords starting with V to be identified and styled
|
||||
|
||||
* in list keywords2
|
||||
VARIANCE
|
||||
|
||||
* in list keywords3
|
||||
VARYING
|
8
3rdparty/lexilla532/lexilla/test/examples/cobol/230.cob.folded
vendored
Normal file
8
3rdparty/lexilla532/lexilla/test/examples/cobol/230.cob.folded
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
0 400 0 * Keywords starting with V to be identified and styled
|
||||
0 400 0
|
||||
0 400 0 * in list keywords2
|
||||
0 400 0 VARIANCE
|
||||
0 400 0
|
||||
0 400 0 * in list keywords3
|
||||
0 400 0 VARYING
|
||||
0 400 0
|
7
3rdparty/lexilla532/lexilla/test/examples/cobol/230.cob.styled
vendored
Normal file
7
3rdparty/lexilla532/lexilla/test/examples/cobol/230.cob.styled
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
{0} {2}* Keywords starting with V to be identified and styled{0}
|
||||
|
||||
{2}* in list keywords2{0}
|
||||
{16}VARIANCE{0}
|
||||
|
||||
{2}* in list keywords3{0}
|
||||
{8}VARYING{0}
|
9
3rdparty/lexilla532/lexilla/test/examples/cobol/231.cob
vendored
Normal file
9
3rdparty/lexilla532/lexilla/test/examples/cobol/231.cob
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
* Comment preceded by 6 characters to be styled
|
||||
* Include / to be styled as a comment
|
||||
|
||||
* Comment colored in green
|
||||
ABCDE * Comment colored in green
|
||||
ABCDEF* Comment NOT colored in green
|
||||
/ Comment NOT colored in green
|
||||
ABCDE / Comment NOT colored in green
|
||||
ABCDEF/ Comment NOT colored in green
|
10
3rdparty/lexilla532/lexilla/test/examples/cobol/231.cob.folded
vendored
Normal file
10
3rdparty/lexilla532/lexilla/test/examples/cobol/231.cob.folded
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
0 400 0 * Comment preceded by 6 characters to be styled
|
||||
0 400 0 * Include / to be styled as a comment
|
||||
0 400 0
|
||||
0 400 0 * Comment colored in green
|
||||
0 400 0 ABCDE * Comment colored in green
|
||||
0 400 0 ABCDEF* Comment NOT colored in green
|
||||
0 400 0 / Comment NOT colored in green
|
||||
0 400 0 ABCDE / Comment NOT colored in green
|
||||
0 400 0 ABCDEF/ Comment NOT colored in green
|
||||
0 400 0
|
9
3rdparty/lexilla532/lexilla/test/examples/cobol/231.cob.styled
vendored
Normal file
9
3rdparty/lexilla532/lexilla/test/examples/cobol/231.cob.styled
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
{0} {2}* Comment preceded by 6 characters to be styled{0}
|
||||
{2}* Include / to be styled as a comment{0}
|
||||
|
||||
{2}* Comment colored in green{0}
|
||||
{11}ABCDE{0} {2}* Comment colored in green{0}
|
||||
{11}ABCDEF{2}* Comment NOT colored in green{0}
|
||||
{2}/ Comment NOT colored in green{0}
|
||||
{11}ABCDE{0} {2}/ Comment NOT colored in green{0}
|
||||
{11}ABCDEF{2}/ Comment NOT colored in green{0}
|
35
3rdparty/lexilla532/lexilla/test/examples/cobol/AllStyles.cob
vendored
Normal file
35
3rdparty/lexilla532/lexilla/test/examples/cobol/AllStyles.cob
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
* Enumerate all styles: 0, 2 to 11, 16
|
||||
* SCE_C_COMMENTLINE=2
|
||||
|
||||
* SCE_C_DEFAULT=0
|
||||
|
||||
|
||||
* SCE_C_IDENTIFIER=11
|
||||
identifier
|
||||
|
||||
* SCE_C_NUMBER=4
|
||||
4
|
||||
|
||||
* SCE_C_WORD=5
|
||||
data
|
||||
|
||||
* SCE_C_WORD2=16
|
||||
cancel
|
||||
|
||||
* SCE_C_UUID=8
|
||||
remarks
|
||||
|
||||
* SCE_C_COMMENTDOC=3 not implemented
|
||||
** at line start
|
||||
|
||||
* SCE_C_STRING=6
|
||||
"string"
|
||||
|
||||
* SCE_C_CHARACTER=7
|
||||
'c'
|
||||
|
||||
* SCE_C_PREPROCESSOR=9
|
||||
?preprocessor
|
||||
|
||||
* SCE_C_OPERATOR=10
|
||||
+
|
36
3rdparty/lexilla532/lexilla/test/examples/cobol/AllStyles.cob.folded
vendored
Normal file
36
3rdparty/lexilla532/lexilla/test/examples/cobol/AllStyles.cob.folded
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
0 400 0 * Enumerate all styles: 0, 2 to 11, 16
|
||||
0 400 0 * SCE_C_COMMENTLINE=2
|
||||
0 400 0
|
||||
0 400 0 * SCE_C_DEFAULT=0
|
||||
0 400 0
|
||||
0 400 0
|
||||
0 400 0 * SCE_C_IDENTIFIER=11
|
||||
0 400 0 identifier
|
||||
0 400 0
|
||||
0 400 0 * SCE_C_NUMBER=4
|
||||
0 400 0 4
|
||||
0 400 0
|
||||
0 400 0 * SCE_C_WORD=5
|
||||
0 400 0 data
|
||||
0 400 0
|
||||
0 400 0 * SCE_C_WORD2=16
|
||||
0 400 0 cancel
|
||||
0 400 0
|
||||
0 400 0 * SCE_C_UUID=8
|
||||
0 400 0 remarks
|
||||
0 400 0
|
||||
0 400 0 * SCE_C_COMMENTDOC=3 not implemented
|
||||
0 400 0 ** at line start
|
||||
0 400 0
|
||||
0 400 0 * SCE_C_STRING=6
|
||||
0 400 0 "string"
|
||||
0 400 0
|
||||
0 400 0 * SCE_C_CHARACTER=7
|
||||
0 400 0 'c'
|
||||
0 400 0
|
||||
0 400 0 * SCE_C_PREPROCESSOR=9
|
||||
0 400 0 ?preprocessor
|
||||
0 400 0
|
||||
0 400 0 * SCE_C_OPERATOR=10
|
||||
0 400 0 +
|
||||
0 400 0
|
35
3rdparty/lexilla532/lexilla/test/examples/cobol/AllStyles.cob.styled
vendored
Normal file
35
3rdparty/lexilla532/lexilla/test/examples/cobol/AllStyles.cob.styled
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
{0} {2}* Enumerate all styles: 0, 2 to 11, 16{0}
|
||||
{2}* SCE_C_COMMENTLINE=2{0}
|
||||
|
||||
{2}* SCE_C_DEFAULT=0{0}
|
||||
|
||||
|
||||
{2}* SCE_C_IDENTIFIER=11{0}
|
||||
{11}identifier{0}
|
||||
|
||||
{2}* SCE_C_NUMBER=4{0}
|
||||
{4}4{0}
|
||||
|
||||
{2}* SCE_C_WORD=5{0}
|
||||
{5}data{0}
|
||||
|
||||
{2}* SCE_C_WORD2=16{0}
|
||||
{16}cancel{0}
|
||||
|
||||
{2}* SCE_C_UUID=8{0}
|
||||
{8}remarks{0}
|
||||
|
||||
{2}* SCE_C_COMMENTDOC=3 not implemented{0}
|
||||
{3}** at line start{0}
|
||||
|
||||
{2}* SCE_C_STRING=6{0}
|
||||
{6}"string"{0}
|
||||
|
||||
{2}* SCE_C_CHARACTER=7{0}
|
||||
{7}'c'{0}
|
||||
|
||||
{2}* SCE_C_PREPROCESSOR=9{0}
|
||||
{9}?preprocessor{0}
|
||||
|
||||
{2}* SCE_C_OPERATOR=10{0}
|
||||
{10}+{0}
|
4
3rdparty/lexilla532/lexilla/test/examples/cobol/SciTE.properties
vendored
Normal file
4
3rdparty/lexilla532/lexilla/test/examples/cobol/SciTE.properties
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
lexer.*.cob=COBOL
|
||||
keywords.*.cob=data
|
||||
keywords2.*.cob=cancel variance
|
||||
keywords3.*.cob=remarks varying
|
Reference in New Issue
Block a user