fix build under newer KConfig by bump cmake min version
This commit is contained in:
9
3rdparty/lexilla540/lexilla/test/examples/cpp/130NonAsciiKeyword.cxx
vendored
Normal file
9
3rdparty/lexilla540/lexilla/test/examples/cpp/130NonAsciiKeyword.cxx
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
// coding: utf-8
|
||||
// All three following symbols should highlight as keywords
|
||||
cheese
|
||||
käse
|
||||
сыр
|
||||
|
||||
// Lookalikes with ASCII so should not highlight:
|
||||
сыp
|
||||
cыp
|
10
3rdparty/lexilla540/lexilla/test/examples/cpp/130NonAsciiKeyword.cxx.folded
vendored
Normal file
10
3rdparty/lexilla540/lexilla/test/examples/cpp/130NonAsciiKeyword.cxx.folded
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
0 400 400 // coding: utf-8
|
||||
0 400 400 // All three following symbols should highlight as keywords
|
||||
0 400 400 cheese
|
||||
0 400 400 käse
|
||||
0 400 400 сыр
|
||||
1 400 400
|
||||
0 400 400 // Lookalikes with ASCII so should not highlight:
|
||||
0 400 400 сыp
|
||||
0 400 400 cыp
|
||||
1 400 400
|
9
3rdparty/lexilla540/lexilla/test/examples/cpp/130NonAsciiKeyword.cxx.styled
vendored
Normal file
9
3rdparty/lexilla540/lexilla/test/examples/cpp/130NonAsciiKeyword.cxx.styled
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
{2}// coding: utf-8
|
||||
// All three following symbols should highlight as keywords
|
||||
{5}cheese{0}
|
||||
{5}käse{0}
|
||||
{5}сыр{0}
|
||||
|
||||
{2}// Lookalikes with ASCII so should not highlight:
|
||||
{11}сыp{0}
|
||||
{11}cыp{0}
|
11
3rdparty/lexilla540/lexilla/test/examples/cpp/149KeywordCase.cxx
vendored
Normal file
11
3rdparty/lexilla540/lexilla/test/examples/cpp/149KeywordCase.cxx
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
// SCE_C_WORD2 (16)
|
||||
second
|
||||
|
||||
// SCE_C_IDENTIFIER (11)
|
||||
Second
|
||||
|
||||
// SCE_C_IDENTIFIER (11)
|
||||
upper
|
||||
|
||||
// SCE_C_WORD2 (16)
|
||||
Upper
|
12
3rdparty/lexilla540/lexilla/test/examples/cpp/149KeywordCase.cxx.folded
vendored
Normal file
12
3rdparty/lexilla540/lexilla/test/examples/cpp/149KeywordCase.cxx.folded
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
0 400 400 // SCE_C_WORD2 (16)
|
||||
0 400 400 second
|
||||
1 400 400
|
||||
0 400 400 // SCE_C_IDENTIFIER (11)
|
||||
0 400 400 Second
|
||||
1 400 400
|
||||
0 400 400 // SCE_C_IDENTIFIER (11)
|
||||
0 400 400 upper
|
||||
1 400 400
|
||||
0 400 400 // SCE_C_WORD2 (16)
|
||||
0 400 400 Upper
|
||||
1 400 400
|
11
3rdparty/lexilla540/lexilla/test/examples/cpp/149KeywordCase.cxx.styled
vendored
Normal file
11
3rdparty/lexilla540/lexilla/test/examples/cpp/149KeywordCase.cxx.styled
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
{2}// SCE_C_WORD2 (16)
|
||||
{16}second{0}
|
||||
|
||||
{2}// SCE_C_IDENTIFIER (11)
|
||||
{11}Second{0}
|
||||
|
||||
{2}// SCE_C_IDENTIFIER (11)
|
||||
{11}upper{0}
|
||||
|
||||
{2}// SCE_C_WORD2 (16)
|
||||
{16}Upper{0}
|
31
3rdparty/lexilla540/lexilla/test/examples/cpp/94Template.cxx
vendored
Normal file
31
3rdparty/lexilla540/lexilla/test/examples/cpp/94Template.cxx
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
// Test JavaScript template expressions for issue 94
|
||||
|
||||
// Basic
|
||||
var basic = `${identifier}`;
|
||||
|
||||
// Nested
|
||||
var nested = ` ${ ` ${ 1 } ` } `;
|
||||
|
||||
// With escapes
|
||||
var xxx = {
|
||||
'1': `\`\u0020\${a${1 + 1}b}`,
|
||||
'2': `\${a${ `b${1 + 2}c`.charCodeAt(2) }d}`,
|
||||
'3': `\${a${ `b${ `c${ JSON.stringify({
|
||||
'4': {},
|
||||
}) }d` }e` }f}`,
|
||||
};
|
||||
|
||||
// Original request
|
||||
fetchOptions.body = `
|
||||
{
|
||||
"accountNumber" : "248796",
|
||||
"customerType" : "Shipper",
|
||||
"destinationCity" : "${order.destination.city}",
|
||||
"destinationState" : "${order.destination.stateProvince}",
|
||||
"destinationZip" : ${order.destination.postalCode},
|
||||
"paymentType" : "Prepaid",
|
||||
"shipmentInfo" :
|
||||
{
|
||||
"items" : [ { "shipmentClass" : "50", "shipmentWeight" : "${order.totalWeight.toString()}" } ]
|
||||
}
|
||||
}`;
|
32
3rdparty/lexilla540/lexilla/test/examples/cpp/94Template.cxx.folded
vendored
Normal file
32
3rdparty/lexilla540/lexilla/test/examples/cpp/94Template.cxx.folded
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
0 400 400 // Test JavaScript template expressions for issue 94
|
||||
1 400 400
|
||||
0 400 400 // Basic
|
||||
0 400 400 var basic = `${identifier}`;
|
||||
1 400 400
|
||||
0 400 400 // Nested
|
||||
0 400 400 var nested = ` ${ ` ${ 1 } ` } `;
|
||||
1 400 400
|
||||
0 400 400 // With escapes
|
||||
2 400 401 + var xxx = {
|
||||
0 401 401 | '1': `\`\u0020\${a${1 + 1}b}`,
|
||||
0 401 401 | '2': `\${a${ `b${1 + 2}c`.charCodeAt(2) }d}`,
|
||||
2 401 406 + '3': `\${a${ `b${ `c${ JSON.stringify({
|
||||
0 406 406 | '4': {},
|
||||
0 406 401 | }) }d` }e` }f}`,
|
||||
0 401 400 | };
|
||||
1 400 400
|
||||
0 400 400 // Original request
|
||||
0 400 400 fetchOptions.body = `
|
||||
0 400 400 {
|
||||
0 400 400 "accountNumber" : "248796",
|
||||
0 400 400 "customerType" : "Shipper",
|
||||
0 400 400 "destinationCity" : "${order.destination.city}",
|
||||
0 400 400 "destinationState" : "${order.destination.stateProvince}",
|
||||
0 400 400 "destinationZip" : ${order.destination.postalCode},
|
||||
0 400 400 "paymentType" : "Prepaid",
|
||||
0 400 400 "shipmentInfo" :
|
||||
0 400 400 {
|
||||
0 400 400 "items" : [ { "shipmentClass" : "50", "shipmentWeight" : "${order.totalWeight.toString()}" } ]
|
||||
0 400 400 }
|
||||
0 400 400 }`;
|
||||
1 400 400
|
31
3rdparty/lexilla540/lexilla/test/examples/cpp/94Template.cxx.styled
vendored
Normal file
31
3rdparty/lexilla540/lexilla/test/examples/cpp/94Template.cxx.styled
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
{2}// Test JavaScript template expressions for issue 94
|
||||
{0}
|
||||
{2}// Basic
|
||||
{5}var{0} {11}basic{0} {10}={0} {20}`{10}${{11}identifier{10}}{20}`{10};{0}
|
||||
|
||||
{2}// Nested
|
||||
{5}var{0} {11}nested{0} {10}={0} {20}` {10}${{0} {20}` {10}${{0} {4}1{0} {10}}{20} `{0} {10}}{20} `{10};{0}
|
||||
|
||||
{2}// With escapes
|
||||
{5}var{0} {11}xxx{0} {10}={0} {10}{{0}
|
||||
{7}'1'{10}:{0} {20}`{27}\`\u0020\${20}{a{10}${{4}1{0} {10}+{0} {4}1{10}}{20}b}`{10},{0}
|
||||
{7}'2'{10}:{0} {20}`{27}\${20}{a{10}${{0} {20}`b{10}${{4}1{0} {10}+{0} {4}2{10}}{20}c`{10}.{16}charCodeAt{10}({4}2{10}){0} {10}}{20}d}`{10},{0}
|
||||
{7}'3'{10}:{0} {20}`{27}\${20}{a{10}${{0} {20}`b{10}${{0} {20}`c{10}${{0} {19}JSON{10}.{16}stringify{10}({{0}
|
||||
{7}'4'{10}:{0} {10}{},{0}
|
||||
{10}}){0} {10}}{20}d`{0} {10}}{20}e`{0} {10}}{20}f}`{10},{0}
|
||||
{10}};{0}
|
||||
|
||||
{2}// Original request
|
||||
{11}fetchOptions{10}.{11}body{0} {10}={0} {20}`
|
||||
{
|
||||
"accountNumber" : "248796",
|
||||
"customerType" : "Shipper",
|
||||
"destinationCity" : "{10}${{11}order{10}.{11}destination{10}.{11}city{10}}{20}",
|
||||
"destinationState" : "{10}${{11}order{10}.{11}destination{10}.{11}stateProvince{10}}{20}",
|
||||
"destinationZip" : {10}${{11}order{10}.{11}destination{10}.{11}postalCode{10}}{20},
|
||||
"paymentType" : "Prepaid",
|
||||
"shipmentInfo" :
|
||||
{
|
||||
"items" : [ { "shipmentClass" : "50", "shipmentWeight" : "{10}${{11}order{10}.{11}totalWeight{10}.{11}toString{10}()}{20}" } ]
|
||||
}
|
||||
}`{10};{0}
|
193
3rdparty/lexilla540/lexilla/test/examples/cpp/AllStyles.cxx
vendored
Normal file
193
3rdparty/lexilla540/lexilla/test/examples/cpp/AllStyles.cxx
vendored
Normal file
@ -0,0 +1,193 @@
|
||||
// Enumerate all primary styles: 0 to 27 and secondary styles 64 to 91
|
||||
|
||||
// default=0
|
||||
|
||||
|
||||
// comment=1
|
||||
/* */
|
||||
|
||||
/* commentline=2 */
|
||||
// example line
|
||||
|
||||
// commentdoc=3
|
||||
/** */
|
||||
|
||||
// number=4
|
||||
123
|
||||
|
||||
// word=5
|
||||
int
|
||||
|
||||
// string=6
|
||||
"string"
|
||||
|
||||
// character=7
|
||||
'c'
|
||||
|
||||
// uuid=8
|
||||
uuid(3fd43029-1354-42f0-a5be-4a484c9c5250)
|
||||
|
||||
// preprocessor=9
|
||||
#define xxx 1
|
||||
|
||||
// operator=10
|
||||
{}
|
||||
|
||||
// identifier=11
|
||||
identifier
|
||||
|
||||
// stringeol=12
|
||||
"
|
||||
|
||||
// verbatim=13
|
||||
@"verbatim"
|
||||
|
||||
// regex=14
|
||||
(/regex/)
|
||||
|
||||
// commentlinedoc=15
|
||||
/// example
|
||||
|
||||
// word2=16
|
||||
second
|
||||
|
||||
// commentdockeyword=17
|
||||
/** @file */
|
||||
|
||||
// commentdockeyworderror=18
|
||||
/** @wrongkey */
|
||||
|
||||
// globalclass=19
|
||||
global
|
||||
|
||||
// stringraw=20
|
||||
R"( )"
|
||||
|
||||
// tripleverbatim=21
|
||||
""" xx """
|
||||
|
||||
// hashquotedstring=22
|
||||
#" xx "
|
||||
|
||||
// preprocessorcomment=23
|
||||
#define /* comment */
|
||||
|
||||
// preprocessorcommentdoc=24
|
||||
#define /** comment */
|
||||
|
||||
// userliteral=25
|
||||
1_date_
|
||||
|
||||
// taskmarker=26
|
||||
/* TODO: sleep */
|
||||
|
||||
// escapesequence=27
|
||||
"\001 \b"
|
||||
|
||||
// identifier substyles.11.1=128
|
||||
vector
|
||||
|
||||
// identifier substyles.11.2=129
|
||||
std
|
||||
|
||||
// commentdockeyword substyles.17.1=130
|
||||
/** @module */
|
||||
|
||||
// Secondary styles inside preprocessor excluded section
|
||||
|
||||
#if 0
|
||||
|
||||
// default=0
|
||||
|
||||
|
||||
// comment=1
|
||||
/* */
|
||||
|
||||
/* commentline=2 */
|
||||
// example line
|
||||
|
||||
// commentdoc=3
|
||||
/** */
|
||||
|
||||
// number=4
|
||||
123
|
||||
|
||||
// word=5
|
||||
int
|
||||
|
||||
// string=6
|
||||
"string"
|
||||
|
||||
// character=7
|
||||
'c'
|
||||
|
||||
// uuid=8
|
||||
uuid(3fd43029-1354-42f0-a5be-4a484c9c5250)
|
||||
|
||||
// preprocessor=9
|
||||
#define xxx 1
|
||||
|
||||
// operator=10
|
||||
{}
|
||||
|
||||
// identifier=11
|
||||
identifier
|
||||
|
||||
// stringeol=12
|
||||
"
|
||||
|
||||
// verbatim=13
|
||||
@"verbatim"
|
||||
|
||||
// regex=14
|
||||
(/regex/)
|
||||
|
||||
// commentlinedoc=15
|
||||
/// example
|
||||
|
||||
// word2=16
|
||||
second
|
||||
|
||||
// commentdockeyword=17
|
||||
/** @file */
|
||||
|
||||
// commentdockeyworderror=18
|
||||
/** @wrongkey */
|
||||
|
||||
// globalclass=19
|
||||
global
|
||||
|
||||
// stringraw=20
|
||||
R"( )"
|
||||
|
||||
// tripleverbatim=21
|
||||
""" xx """
|
||||
|
||||
// hashquotedstring=22
|
||||
#" xx "
|
||||
|
||||
// preprocessorcomment=23
|
||||
#define /* comment */
|
||||
|
||||
// preprocessorcommentdoc=24
|
||||
#define /** comment */
|
||||
|
||||
// userliteral=25
|
||||
1_date_
|
||||
|
||||
// taskmarker=26
|
||||
/* TODO: sleep */
|
||||
|
||||
// escapesequence=27
|
||||
"\001 \b"
|
||||
|
||||
// identifier substyles.75.1=192
|
||||
vector
|
||||
|
||||
// identifier substyles.75.2=193
|
||||
std
|
||||
|
||||
// commentdockeyword substyles.81.1=194
|
||||
/** @module */
|
||||
|
||||
#endif
|
194
3rdparty/lexilla540/lexilla/test/examples/cpp/AllStyles.cxx.folded
vendored
Normal file
194
3rdparty/lexilla540/lexilla/test/examples/cpp/AllStyles.cxx.folded
vendored
Normal file
@ -0,0 +1,194 @@
|
||||
0 400 400 // Enumerate all primary styles: 0 to 27 and secondary styles 64 to 91
|
||||
1 400 400
|
||||
0 400 400 // default=0
|
||||
1 400 400
|
||||
1 400 400
|
||||
0 400 400 // comment=1
|
||||
0 400 400 /* */
|
||||
1 400 400
|
||||
0 400 400 /* commentline=2 */
|
||||
0 400 400 // example line
|
||||
1 400 400
|
||||
0 400 400 // commentdoc=3
|
||||
0 400 400 /** */
|
||||
1 400 400
|
||||
0 400 400 // number=4
|
||||
0 400 400 123
|
||||
1 400 400
|
||||
0 400 400 // word=5
|
||||
0 400 400 int
|
||||
1 400 400
|
||||
0 400 400 // string=6
|
||||
0 400 400 "string"
|
||||
1 400 400
|
||||
0 400 400 // character=7
|
||||
0 400 400 'c'
|
||||
1 400 400
|
||||
0 400 400 // uuid=8
|
||||
0 400 400 uuid(3fd43029-1354-42f0-a5be-4a484c9c5250)
|
||||
1 400 400
|
||||
0 400 400 // preprocessor=9
|
||||
0 400 400 #define xxx 1
|
||||
1 400 400
|
||||
0 400 400 // operator=10
|
||||
0 400 400 {}
|
||||
1 400 400
|
||||
0 400 400 // identifier=11
|
||||
0 400 400 identifier
|
||||
1 400 400
|
||||
0 400 400 // stringeol=12
|
||||
0 400 400 "
|
||||
1 400 400
|
||||
0 400 400 // verbatim=13
|
||||
0 400 400 @"verbatim"
|
||||
1 400 400
|
||||
0 400 400 // regex=14
|
||||
0 400 400 (/regex/)
|
||||
1 400 400
|
||||
0 400 400 // commentlinedoc=15
|
||||
0 400 400 /// example
|
||||
1 400 400
|
||||
0 400 400 // word2=16
|
||||
0 400 400 second
|
||||
1 400 400
|
||||
0 400 400 // commentdockeyword=17
|
||||
0 400 400 /** @file */
|
||||
1 400 400
|
||||
0 400 400 // commentdockeyworderror=18
|
||||
0 400 400 /** @wrongkey */
|
||||
1 400 400
|
||||
0 400 400 // globalclass=19
|
||||
0 400 400 global
|
||||
1 400 400
|
||||
0 400 400 // stringraw=20
|
||||
0 400 400 R"( )"
|
||||
1 400 400
|
||||
0 400 400 // tripleverbatim=21
|
||||
0 400 400 """ xx """
|
||||
1 400 400
|
||||
0 400 400 // hashquotedstring=22
|
||||
0 400 400 #" xx "
|
||||
1 400 400
|
||||
0 400 400 // preprocessorcomment=23
|
||||
0 400 400 #define /* comment */
|
||||
1 400 400
|
||||
0 400 400 // preprocessorcommentdoc=24
|
||||
0 400 400 #define /** comment */
|
||||
1 400 400
|
||||
0 400 400 // userliteral=25
|
||||
0 400 400 1_date_
|
||||
1 400 400
|
||||
0 400 400 // taskmarker=26
|
||||
0 400 400 /* TODO: sleep */
|
||||
1 400 400
|
||||
0 400 400 // escapesequence=27
|
||||
0 400 400 "\001 \b"
|
||||
1 400 400
|
||||
0 400 400 // identifier substyles.11.1=128
|
||||
0 400 400 vector
|
||||
1 400 400
|
||||
0 400 400 // identifier substyles.11.2=129
|
||||
0 400 400 std
|
||||
1 400 400
|
||||
0 400 400 // commentdockeyword substyles.17.1=130
|
||||
0 400 400 /** @module */
|
||||
1 400 400
|
||||
0 400 400 // Secondary styles inside preprocessor excluded section
|
||||
1 400 400
|
||||
2 400 401 + #if 0
|
||||
1 401 401 |
|
||||
0 401 401 | // default=0
|
||||
1 401 401 |
|
||||
1 401 401 |
|
||||
0 401 401 | // comment=1
|
||||
0 401 401 | /* */
|
||||
1 401 401 |
|
||||
0 401 401 | /* commentline=2 */
|
||||
0 401 401 | // example line
|
||||
1 401 401 |
|
||||
0 401 401 | // commentdoc=3
|
||||
0 401 401 | /** */
|
||||
1 401 401 |
|
||||
0 401 401 | // number=4
|
||||
0 401 401 | 123
|
||||
1 401 401 |
|
||||
0 401 401 | // word=5
|
||||
0 401 401 | int
|
||||
1 401 401 |
|
||||
0 401 401 | // string=6
|
||||
0 401 401 | "string"
|
||||
1 401 401 |
|
||||
0 401 401 | // character=7
|
||||
0 401 401 | 'c'
|
||||
1 401 401 |
|
||||
0 401 401 | // uuid=8
|
||||
0 401 401 | uuid(3fd43029-1354-42f0-a5be-4a484c9c5250)
|
||||
1 401 401 |
|
||||
0 401 401 | // preprocessor=9
|
||||
0 401 401 | #define xxx 1
|
||||
1 401 401 |
|
||||
0 401 401 | // operator=10
|
||||
0 401 401 | {}
|
||||
1 401 401 |
|
||||
0 401 401 | // identifier=11
|
||||
0 401 401 | identifier
|
||||
1 401 401 |
|
||||
0 401 401 | // stringeol=12
|
||||
0 401 401 | "
|
||||
1 401 401 |
|
||||
0 401 401 | // verbatim=13
|
||||
0 401 401 | @"verbatim"
|
||||
1 401 401 |
|
||||
0 401 401 | // regex=14
|
||||
0 401 401 | (/regex/)
|
||||
1 401 401 |
|
||||
0 401 401 | // commentlinedoc=15
|
||||
0 401 401 | /// example
|
||||
1 401 401 |
|
||||
0 401 401 | // word2=16
|
||||
0 401 401 | second
|
||||
1 401 401 |
|
||||
0 401 401 | // commentdockeyword=17
|
||||
0 401 401 | /** @file */
|
||||
1 401 401 |
|
||||
0 401 401 | // commentdockeyworderror=18
|
||||
0 401 401 | /** @wrongkey */
|
||||
1 401 401 |
|
||||
0 401 401 | // globalclass=19
|
||||
0 401 401 | global
|
||||
1 401 401 |
|
||||
0 401 401 | // stringraw=20
|
||||
0 401 401 | R"( )"
|
||||
1 401 401 |
|
||||
0 401 401 | // tripleverbatim=21
|
||||
0 401 401 | """ xx """
|
||||
1 401 401 |
|
||||
0 401 401 | // hashquotedstring=22
|
||||
0 401 401 | #" xx "
|
||||
1 401 401 |
|
||||
0 401 401 | // preprocessorcomment=23
|
||||
0 401 401 | #define /* comment */
|
||||
1 401 401 |
|
||||
0 401 401 | // preprocessorcommentdoc=24
|
||||
0 401 401 | #define /** comment */
|
||||
1 401 401 |
|
||||
0 401 401 | // userliteral=25
|
||||
0 401 401 | 1_date_
|
||||
1 401 401 |
|
||||
0 401 401 | // taskmarker=26
|
||||
0 401 401 | /* TODO: sleep */
|
||||
1 401 401 |
|
||||
0 401 401 | // escapesequence=27
|
||||
0 401 401 | "\001 \b"
|
||||
1 401 401 |
|
||||
0 401 401 | // identifier substyles.75.1=192
|
||||
0 401 401 | vector
|
||||
1 401 401 |
|
||||
0 401 401 | // identifier substyles.75.2=193
|
||||
0 401 401 | std
|
||||
1 401 401 |
|
||||
0 401 401 | // commentdockeyword substyles.81.1=194
|
||||
0 401 401 | /** @module */
|
||||
1 401 401 |
|
||||
0 401 400 | #endif
|
||||
1 400 400
|
193
3rdparty/lexilla540/lexilla/test/examples/cpp/AllStyles.cxx.styled
vendored
Normal file
193
3rdparty/lexilla540/lexilla/test/examples/cpp/AllStyles.cxx.styled
vendored
Normal file
@ -0,0 +1,193 @@
|
||||
{2}// Enumerate all primary styles: 0 to 27 and secondary styles 64 to 91
|
||||
{0}
|
||||
{2}// default=0
|
||||
{0}
|
||||
|
||||
{2}// comment=1
|
||||
{1}/* */{0}
|
||||
|
||||
{1}/* commentline=2 */{0}
|
||||
{2}// example line
|
||||
{0}
|
||||
{2}// commentdoc=3
|
||||
{3}/** */{0}
|
||||
|
||||
{2}// number=4
|
||||
{4}123{0}
|
||||
|
||||
{2}// word=5
|
||||
{5}int{0}
|
||||
|
||||
{2}// string=6
|
||||
{6}"string"{0}
|
||||
|
||||
{2}// character=7
|
||||
{7}'c'{0}
|
||||
|
||||
{2}// uuid=8
|
||||
{5}uuid{10}({8}3fd43029-1354-42f0-a5be-4a484c9c5250{10}){0}
|
||||
|
||||
{2}// preprocessor=9
|
||||
{9}#define xxx 1
|
||||
{0}
|
||||
{2}// operator=10
|
||||
{10}{}{0}
|
||||
|
||||
{2}// identifier=11
|
||||
{11}identifier{0}
|
||||
|
||||
{2}// stringeol=12
|
||||
{12}"
|
||||
{0}
|
||||
{2}// verbatim=13
|
||||
{13}@"verbatim"{0}
|
||||
|
||||
{2}// regex=14
|
||||
{10}({14}/regex/{10}){0}
|
||||
|
||||
{2}// commentlinedoc=15
|
||||
{15}/// example
|
||||
{0}
|
||||
{2}// word2=16
|
||||
{16}second{0}
|
||||
|
||||
{2}// commentdockeyword=17
|
||||
{3}/** {17}@file{3} */{0}
|
||||
|
||||
{2}// commentdockeyworderror=18
|
||||
{3}/** {18}@wrongkey{3} */{0}
|
||||
|
||||
{2}// globalclass=19
|
||||
{19}global{0}
|
||||
|
||||
{2}// stringraw=20
|
||||
{20}R"( )"{0}
|
||||
|
||||
{2}// tripleverbatim=21
|
||||
{21}""" xx """{0}
|
||||
|
||||
{2}// hashquotedstring=22
|
||||
{22}#" xx "{0}
|
||||
|
||||
{2}// preprocessorcomment=23
|
||||
{9}#define {23}/* comment */{9}
|
||||
{0}
|
||||
{2}// preprocessorcommentdoc=24
|
||||
{9}#define {24}/** comment */{9}
|
||||
{0}
|
||||
{2}// userliteral=25
|
||||
{25}1_date_{0}
|
||||
|
||||
{2}// taskmarker=26
|
||||
{1}/* {26}TODO{1}: sleep */{0}
|
||||
|
||||
{2}// escapesequence=27
|
||||
{6}"{27}\001{6} {27}\b{6}"{0}
|
||||
|
||||
{2}// identifier substyles.11.1=128
|
||||
{128}vector{0}
|
||||
|
||||
{2}// identifier substyles.11.2=129
|
||||
{129}std{0}
|
||||
|
||||
{2}// commentdockeyword substyles.17.1=130
|
||||
{3}/** {130}@module{3} */{0}
|
||||
|
||||
{2}// Secondary styles inside preprocessor excluded section
|
||||
{0}
|
||||
{9}#if 0
|
||||
{64}
|
||||
{66}// default=0
|
||||
{64}
|
||||
|
||||
{66}// comment=1
|
||||
{65}/* */{64}
|
||||
|
||||
{65}/* commentline=2 */{64}
|
||||
{66}// example line
|
||||
{64}
|
||||
{66}// commentdoc=3
|
||||
{67}/** */{64}
|
||||
|
||||
{66}// number=4
|
||||
{68}123{64}
|
||||
|
||||
{66}// word=5
|
||||
{69}int{64}
|
||||
|
||||
{66}// string=6
|
||||
{70}"string"{64}
|
||||
|
||||
{66}// character=7
|
||||
{71}'c'{64}
|
||||
|
||||
{66}// uuid=8
|
||||
{69}uuid{74}({72}3fd43029-1354-42f0-a5be-4a484c9c5250{74}){64}
|
||||
|
||||
{66}// preprocessor=9
|
||||
{73}#define xxx 1
|
||||
{64}
|
||||
{66}// operator=10
|
||||
{74}{}{64}
|
||||
|
||||
{66}// identifier=11
|
||||
{75}identifier{64}
|
||||
|
||||
{66}// stringeol=12
|
||||
{76}"
|
||||
{64}
|
||||
{66}// verbatim=13
|
||||
{77}@"verbatim"{64}
|
||||
|
||||
{66}// regex=14
|
||||
{74}({78}/regex/{74}){64}
|
||||
|
||||
{66}// commentlinedoc=15
|
||||
{79}/// example
|
||||
{64}
|
||||
{66}// word2=16
|
||||
{80}second{64}
|
||||
|
||||
{66}// commentdockeyword=17
|
||||
{67}/** {81}@file{67} */{64}
|
||||
|
||||
{66}// commentdockeyworderror=18
|
||||
{67}/** {82}@wrongkey{67} */{64}
|
||||
|
||||
{66}// globalclass=19
|
||||
{83}global{64}
|
||||
|
||||
{66}// stringraw=20
|
||||
{84}R"( )"{64}
|
||||
|
||||
{66}// tripleverbatim=21
|
||||
{85}""" xx """{64}
|
||||
|
||||
{66}// hashquotedstring=22
|
||||
{86}#" xx "{64}
|
||||
|
||||
{66}// preprocessorcomment=23
|
||||
{73}#define {87}/* comment */{73}
|
||||
{64}
|
||||
{66}// preprocessorcommentdoc=24
|
||||
{73}#define {88}/** comment */{73}
|
||||
{64}
|
||||
{66}// userliteral=25
|
||||
{89}1_date_{64}
|
||||
|
||||
{66}// taskmarker=26
|
||||
{65}/* {90}TODO{65}: sleep */{64}
|
||||
|
||||
{66}// escapesequence=27
|
||||
{70}"{91}\001{70} {91}\b{70}"{64}
|
||||
|
||||
{66}// identifier substyles.75.1=192
|
||||
{192}vector{64}
|
||||
|
||||
{66}// identifier substyles.75.2=193
|
||||
{193}std{64}
|
||||
|
||||
{66}// commentdockeyword substyles.81.1=194
|
||||
{67}/** {194}@module{67} */{64}
|
||||
|
||||
{9}#endif
|
13
3rdparty/lexilla540/lexilla/test/examples/cpp/Bug2245.cxx
vendored
Normal file
13
3rdparty/lexilla540/lexilla/test/examples/cpp/Bug2245.cxx
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
int i;
|
||||
#if 1
|
||||
i=1;
|
||||
#
|
||||
i=2;
|
||||
#else
|
||||
i=3;
|
||||
#endif
|
||||
i=4;
|
||||
#elif 1
|
||||
i=5;
|
||||
#else
|
||||
i=6;
|
14
3rdparty/lexilla540/lexilla/test/examples/cpp/Bug2245.cxx.folded
vendored
Normal file
14
3rdparty/lexilla540/lexilla/test/examples/cpp/Bug2245.cxx.folded
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
0 400 400 int i;
|
||||
2 400 401 + #if 1
|
||||
0 401 401 | i=1;
|
||||
0 401 401 | #
|
||||
0 401 401 | i=2;
|
||||
0 401 401 | #else
|
||||
0 401 401 | i=3;
|
||||
0 401 400 | #endif
|
||||
0 400 400 i=4;
|
||||
0 400 400 #elif 1
|
||||
0 400 400 i=5;
|
||||
0 400 400 #else
|
||||
0 400 400 i=6;
|
||||
1 400 400
|
13
3rdparty/lexilla540/lexilla/test/examples/cpp/Bug2245.cxx.styled
vendored
Normal file
13
3rdparty/lexilla540/lexilla/test/examples/cpp/Bug2245.cxx.styled
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
{5}int{0} {11}i{10};{0}
|
||||
{9}#if 1
|
||||
{11}i{10}={4}1{10};{0}
|
||||
{9}#
|
||||
{11}i{10}={4}2{10};{0}
|
||||
{9}#else
|
||||
{75}i{74}={68}3{74};{64}
|
||||
{9}#endif
|
||||
{11}i{10}={4}4{10};{0}
|
||||
{9}#elif 1
|
||||
{11}i{10}={4}5{10};{0}
|
||||
{9}#else
|
||||
{11}i{10}={4}6{10};{0}
|
31
3rdparty/lexilla540/lexilla/test/examples/cpp/SciTE.properties
vendored
Normal file
31
3rdparty/lexilla540/lexilla/test/examples/cpp/SciTE.properties
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
# coding: utf-8
|
||||
lexer.*.cxx=cpp
|
||||
keywords.*.cxx=int let uuid var
|
||||
keywords2.*.cxx=charCodeAt second stringify Upper
|
||||
keywords3.*.cxx=file
|
||||
keywords4.*.cxx=global JSON
|
||||
keywords5.*.cxx=HAVE_COLOUR FEATURE=2 VERSION(a,b)=a+b
|
||||
keywords6.*.cxx=TODO
|
||||
|
||||
substyles.cpp.11=2
|
||||
substylewords.11.1.*.cxx=map string vector
|
||||
substylewords.11.2.*.cxx=std gsl
|
||||
|
||||
substyles.cpp.17=1
|
||||
substylewords.17.1.*.cxx=module
|
||||
|
||||
lexer.cpp.track.preprocessor=1
|
||||
lexer.cpp.escape.sequence=1
|
||||
# Set options so that AllStyles.cxx can show every style
|
||||
styling.within.preprocessor=0
|
||||
lexer.cpp.triplequoted.strings=1
|
||||
lexer.cpp.hashquoted.strings=1
|
||||
lexer.cpp.backquoted.strings=2
|
||||
|
||||
fold=1
|
||||
fold.preprocessor=1
|
||||
fold.comment=1
|
||||
fold.compact=1
|
||||
|
||||
match 130NonAsciiKeyword.cxx
|
||||
keywords.*.cxx=cheese käse сыр
|
85
3rdparty/lexilla540/lexilla/test/examples/cpp/x.cxx
vendored
Normal file
85
3rdparty/lexilla540/lexilla/test/examples/cpp/x.cxx
vendored
Normal file
@ -0,0 +1,85 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
// A demonstration program
|
||||
#include <stdio.h>
|
||||
#if 0 /* */
|
||||
#define DUMMY() \
|
||||
if (1);
|
||||
#endif
|
||||
|
||||
// Test preprocessor expressions with parentheses
|
||||
#if ((0))
|
||||
a
|
||||
#elif ((1))
|
||||
b
|
||||
#endif
|
||||
|
||||
/** @file LexCPP.cxx
|
||||
<file>
|
||||
<file >filename</file>
|
||||
LexCPP.cxx.
|
||||
</file>
|
||||
**/
|
||||
|
||||
/** Unknown doc keywords so in SCE_C_COMMENTDOCKEYWORDERROR:
|
||||
@wrong LexCPP.cxx
|
||||
<wrong>filename</wrong>
|
||||
**/
|
||||
|
||||
#define M\
|
||||
|
||||
\
|
||||
|
||||
|
||||
// Test preprocessor active branches feature
|
||||
|
||||
#if HAVE_COLOUR
|
||||
// Active
|
||||
#endif
|
||||
#if NOT_HAVE_COLOUR
|
||||
// Inactive
|
||||
#endif
|
||||
|
||||
#if FEATURE==2
|
||||
// Active
|
||||
#endif
|
||||
#if FEATURE==3
|
||||
// Inactive
|
||||
#endif
|
||||
|
||||
#if VERSION(1,2)==3
|
||||
// Active
|
||||
#endif
|
||||
#if VERSION(1,2)==4
|
||||
// Inactive
|
||||
#endif
|
||||
|
||||
#undef HAVE_COLOUR
|
||||
#if HAVE_COLOUR
|
||||
// Inactive
|
||||
#endif
|
||||
|
||||
#define MULTIPLY(a,b) a*b
|
||||
#if MULTIPLY(2,3)==6
|
||||
// Active
|
||||
#endif
|
||||
|
||||
int main() {
|
||||
double x[] = {3.14159,6.02e23,1.6e-19,1.0+1};
|
||||
int y[] = {75,0113,0x4b};
|
||||
printf("hello world %d %g\n", y[0], x[0]);
|
||||
|
||||
// JavaScript regular expression (14) tests
|
||||
let a = /a/;
|
||||
let b = /[a-z]+/gi;
|
||||
/a|b/i.test("baby");
|
||||
// arrow function
|
||||
() => /a|b/i.test("baby");
|
||||
|
||||
// Escape sequence (27) tests
|
||||
printf("\'\"\?\\\a\b\f\n\r\t\v \P");
|
||||
printf("\0a \013a \019");
|
||||
printf("\x013ac \xdz");
|
||||
printf("\ua34df \uz");
|
||||
printf("\Ua34df7833 \Uz");
|
||||
}
|
86
3rdparty/lexilla540/lexilla/test/examples/cpp/x.cxx.folded
vendored
Normal file
86
3rdparty/lexilla540/lexilla/test/examples/cpp/x.cxx.folded
vendored
Normal file
@ -0,0 +1,86 @@
|
||||
0 400 400 #!/usr/bin/env node
|
||||
1 400 400
|
||||
0 400 400 // A demonstration program
|
||||
0 400 400 #include <stdio.h>
|
||||
2 400 401 + #if 0 /* */
|
||||
0 401 401 | #define DUMMY() \
|
||||
0 401 401 | if (1);
|
||||
0 401 400 | #endif
|
||||
1 400 400
|
||||
0 400 400 // Test preprocessor expressions with parentheses
|
||||
2 400 401 + #if ((0))
|
||||
0 401 401 | a
|
||||
0 401 401 | #elif ((1))
|
||||
0 401 401 | b
|
||||
0 401 400 | #endif
|
||||
1 400 400
|
||||
2 400 401 + /** @file LexCPP.cxx
|
||||
0 401 401 | <file>
|
||||
0 401 401 | <file >filename</file>
|
||||
0 401 401 | LexCPP.cxx.
|
||||
0 401 401 | </file>
|
||||
0 401 400 | **/
|
||||
1 400 400
|
||||
2 400 401 + /** Unknown doc keywords so in SCE_C_COMMENTDOCKEYWORDERROR:
|
||||
0 401 401 | @wrong LexCPP.cxx
|
||||
0 401 401 | <wrong>filename</wrong>
|
||||
0 401 400 | **/
|
||||
1 400 400
|
||||
0 400 400 #define M\
|
||||
1 400 400
|
||||
0 400 400 \
|
||||
1 400 400
|
||||
1 400 400
|
||||
0 400 400 // Test preprocessor active branches feature
|
||||
1 400 400
|
||||
2 400 401 + #if HAVE_COLOUR
|
||||
0 401 401 | // Active
|
||||
0 401 400 | #endif
|
||||
2 400 401 + #if NOT_HAVE_COLOUR
|
||||
0 401 401 | // Inactive
|
||||
0 401 400 | #endif
|
||||
1 400 400
|
||||
2 400 401 + #if FEATURE==2
|
||||
0 401 401 | // Active
|
||||
0 401 400 | #endif
|
||||
2 400 401 + #if FEATURE==3
|
||||
0 401 401 | // Inactive
|
||||
0 401 400 | #endif
|
||||
1 400 400
|
||||
2 400 401 + #if VERSION(1,2)==3
|
||||
0 401 401 | // Active
|
||||
0 401 400 | #endif
|
||||
2 400 401 + #if VERSION(1,2)==4
|
||||
0 401 401 | // Inactive
|
||||
0 401 400 | #endif
|
||||
1 400 400
|
||||
0 400 400 #undef HAVE_COLOUR
|
||||
2 400 401 + #if HAVE_COLOUR
|
||||
0 401 401 | // Inactive
|
||||
0 401 400 | #endif
|
||||
1 400 400
|
||||
0 400 400 #define MULTIPLY(a,b) a*b
|
||||
2 400 401 + #if MULTIPLY(2,3)==6
|
||||
0 401 401 | // Active
|
||||
0 401 400 | #endif
|
||||
1 400 400
|
||||
2 400 401 + int main() {
|
||||
0 401 401 | double x[] = {3.14159,6.02e23,1.6e-19,1.0+1};
|
||||
0 401 401 | int y[] = {75,0113,0x4b};
|
||||
0 401 401 | printf("hello world %d %g\n", y[0], x[0]);
|
||||
1 401 401 |
|
||||
0 401 401 | // JavaScript regular expression (14) tests
|
||||
0 401 401 | let a = /a/;
|
||||
0 401 401 | let b = /[a-z]+/gi;
|
||||
0 401 401 | /a|b/i.test("baby");
|
||||
0 401 401 | // arrow function
|
||||
0 401 401 | () => /a|b/i.test("baby");
|
||||
1 401 401 |
|
||||
0 401 401 | // Escape sequence (27) tests
|
||||
0 401 401 | printf("\'\"\?\\\a\b\f\n\r\t\v \P");
|
||||
0 401 401 | printf("\0a \013a \019");
|
||||
0 401 401 | printf("\x013ac \xdz");
|
||||
0 401 401 | printf("\ua34df \uz");
|
||||
0 401 401 | printf("\Ua34df7833 \Uz");
|
||||
0 401 400 | }
|
||||
1 400 400
|
85
3rdparty/lexilla540/lexilla/test/examples/cpp/x.cxx.styled
vendored
Normal file
85
3rdparty/lexilla540/lexilla/test/examples/cpp/x.cxx.styled
vendored
Normal file
@ -0,0 +1,85 @@
|
||||
{2}#!/usr/bin/env node
|
||||
{0}
|
||||
{2}// A demonstration program
|
||||
{9}#include <stdio.h>
|
||||
#if 0 {23}/* */{9}
|
||||
{73}#define DUMMY() \
|
||||
if (1);
|
||||
{9}#endif
|
||||
{0}
|
||||
{2}// Test preprocessor expressions with parentheses
|
||||
{9}#if ((0))
|
||||
{75}a{64}
|
||||
{9}#elif ((1))
|
||||
{11}b{0}
|
||||
{9}#endif
|
||||
{0}
|
||||
{3}/** {17}@file{3} LexCPP.cxx
|
||||
<{17}file{3}>
|
||||
<{17}file{3} >filename</{17}file{3}>
|
||||
LexCPP.cxx.
|
||||
</{17}file{3}>
|
||||
**/{0}
|
||||
|
||||
{3}/** Unknown doc keywords so in SCE_C_COMMENTDOCKEYWORDERROR:
|
||||
{18}@wrong{3} LexCPP.cxx
|
||||
<{18}wrong{3}>filename</{18}wrong{3}>
|
||||
**/{0}
|
||||
|
||||
{9}#define M\
|
||||
|
||||
{0}\
|
||||
|
||||
|
||||
{2}// Test preprocessor active branches feature
|
||||
{0}
|
||||
{9}#if HAVE_COLOUR
|
||||
{2}// Active
|
||||
{9}#endif
|
||||
#if NOT_HAVE_COLOUR
|
||||
{66}// Inactive
|
||||
{9}#endif
|
||||
{0}
|
||||
{9}#if FEATURE==2
|
||||
{2}// Active
|
||||
{9}#endif
|
||||
#if FEATURE==3
|
||||
{66}// Inactive
|
||||
{9}#endif
|
||||
{0}
|
||||
{9}#if VERSION(1,2)==3
|
||||
{2}// Active
|
||||
{9}#endif
|
||||
#if VERSION(1,2)==4
|
||||
{66}// Inactive
|
||||
{9}#endif
|
||||
{0}
|
||||
{9}#undef HAVE_COLOUR
|
||||
#if HAVE_COLOUR
|
||||
{66}// Inactive
|
||||
{9}#endif
|
||||
{0}
|
||||
{9}#define MULTIPLY(a,b) a*b
|
||||
#if MULTIPLY(2,3)==6
|
||||
{2}// Active
|
||||
{9}#endif
|
||||
{0}
|
||||
{5}int{0} {11}main{10}(){0} {10}{{0}
|
||||
{11}double{0} {11}x{10}[]{0} {10}={0} {10}{{4}3.14159{10},{4}6.02e23{10},{4}1.6e-19{10},{4}1.0{10}+{4}1{10}};{0}
|
||||
{5}int{0} {11}y{10}[]{0} {10}={0} {10}{{4}75{10},{4}0113{10},{4}0x4b{10}};{0}
|
||||
{11}printf{10}({6}"hello world %d %g{27}\n{6}"{10},{0} {11}y{10}[{4}0{10}],{0} {11}x{10}[{4}0{10}]);{0}
|
||||
|
||||
{2}// JavaScript regular expression (14) tests
|
||||
{0} {5}let{0} {11}a{0} {10}={0} {14}/a/{10};{0}
|
||||
{5}let{0} {11}b{0} {10}={0} {14}/[a-z]+/gi{10};{0}
|
||||
{14}/a|b/i{10}.{11}test{10}({6}"baby"{10});{0}
|
||||
{2}// arrow function
|
||||
{0} {10}(){0} {10}=>{0} {14}/a|b/i{10}.{11}test{10}({6}"baby"{10});{0}
|
||||
|
||||
{2}// Escape sequence (27) tests
|
||||
{0} {11}printf{10}({6}"{27}\'\"\?\\\a\b\f\n\r\t\v{6} {27}\P{6}"{10});{0}
|
||||
{11}printf{10}({6}"{27}\0{6}a {27}\013{6}a {27}\01{6}9"{10});{0}
|
||||
{11}printf{10}({6}"{27}\x013a{6}c {27}\xd{6}z"{10});{0}
|
||||
{11}printf{10}({6}"{27}\ua34d{6}f {27}\u{6}z"{10});{0}
|
||||
{11}printf{10}({6}"{27}\Ua34df783{6}3 {27}\U{6}z"{10});{0}
|
||||
{10}}{0}
|
Reference in New Issue
Block a user