fix build under newer KConfig by bump cmake min version
This commit is contained in:
63
3rdparty/lexilla540/lexilla/test/examples/python/AllStyles.py
vendored
Normal file
63
3rdparty/lexilla540/lexilla/test/examples/python/AllStyles.py
vendored
Normal file
@ -0,0 +1,63 @@
|
||||
# Enumerate all styles: 0 to 19
|
||||
# comment=1
|
||||
|
||||
# whitespace=0
|
||||
# w
|
||||
|
||||
# number=2
|
||||
37
|
||||
|
||||
# double-quoted-string=3
|
||||
"str"
|
||||
|
||||
# single-quoted-string=4
|
||||
'str'
|
||||
|
||||
# keyword=5
|
||||
pass
|
||||
|
||||
# triple-quoted-string=6
|
||||
'''str'''
|
||||
|
||||
# triple-double-quoted-string=7
|
||||
"""str"""
|
||||
|
||||
# class-name=8
|
||||
class ClassName:
|
||||
pass
|
||||
|
||||
# function-name=9
|
||||
def function_name():
|
||||
pass
|
||||
|
||||
# operator=10
|
||||
1 + 3
|
||||
|
||||
# identifier=11
|
||||
identifier = 2
|
||||
|
||||
# comment-block=12
|
||||
## block
|
||||
|
||||
# unclosed-string=13
|
||||
" unclosed
|
||||
|
||||
# highlighted-identifier=14
|
||||
hilight = 2
|
||||
|
||||
# decorator=15
|
||||
@staticmethod
|
||||
def fn(): pass
|
||||
|
||||
a = 1
|
||||
# double-quoted-f-string=16
|
||||
f"{a}"
|
||||
|
||||
# single-quoted-f-string=17
|
||||
f'{a}'
|
||||
|
||||
# triple-quoted-f-string=18
|
||||
f'''{a}'''
|
||||
|
||||
# double-triple-quoted-f-string=19
|
||||
f"""{a}"""
|
64
3rdparty/lexilla540/lexilla/test/examples/python/AllStyles.py.folded
vendored
Normal file
64
3rdparty/lexilla540/lexilla/test/examples/python/AllStyles.py.folded
vendored
Normal file
@ -0,0 +1,64 @@
|
||||
0 400 0 # Enumerate all styles: 0 to 19
|
||||
0 400 0 # comment=1
|
||||
1 400 0
|
||||
0 400 0 # whitespace=0
|
||||
0 400 0 # w
|
||||
1 400 0
|
||||
0 400 0 # number=2
|
||||
0 400 0 37
|
||||
1 400 0
|
||||
0 400 0 # double-quoted-string=3
|
||||
0 400 0 "str"
|
||||
1 400 0
|
||||
0 400 0 # single-quoted-string=4
|
||||
0 400 0 'str'
|
||||
1 400 0
|
||||
0 400 0 # keyword=5
|
||||
0 400 0 pass
|
||||
1 400 0
|
||||
0 400 0 # triple-quoted-string=6
|
||||
0 400 0 '''str'''
|
||||
1 400 0
|
||||
0 400 0 # triple-double-quoted-string=7
|
||||
0 400 0 """str"""
|
||||
1 400 0
|
||||
0 400 0 # class-name=8
|
||||
2 400 0 + class ClassName:
|
||||
0 408 0 | pass
|
||||
1 400 0
|
||||
0 400 0 # function-name=9
|
||||
2 400 0 + def function_name():
|
||||
0 408 0 | pass
|
||||
1 400 0
|
||||
0 400 0 # operator=10
|
||||
0 400 0 1 + 3
|
||||
1 400 0
|
||||
0 400 0 # identifier=11
|
||||
0 400 0 identifier = 2
|
||||
1 400 0
|
||||
0 400 0 # comment-block=12
|
||||
0 400 0 ## block
|
||||
1 400 0
|
||||
0 400 0 # unclosed-string=13
|
||||
0 400 0 " unclosed
|
||||
1 400 0
|
||||
0 400 0 # highlighted-identifier=14
|
||||
0 400 0 hilight = 2
|
||||
1 400 0
|
||||
0 400 0 # decorator=15
|
||||
0 400 0 @staticmethod
|
||||
0 400 0 def fn(): pass
|
||||
1 400 0
|
||||
0 400 0 a = 1
|
||||
0 400 0 # double-quoted-f-string=16
|
||||
0 400 0 f"{a}"
|
||||
1 400 0
|
||||
0 400 0 # single-quoted-f-string=17
|
||||
0 400 0 f'{a}'
|
||||
1 400 0
|
||||
0 400 0 # triple-quoted-f-string=18
|
||||
0 400 0 f'''{a}'''
|
||||
1 400 0
|
||||
0 400 0 # double-triple-quoted-f-string=19
|
||||
0 400 0 f"""{a}"""
|
||||
1 400 0
|
63
3rdparty/lexilla540/lexilla/test/examples/python/AllStyles.py.styled
vendored
Normal file
63
3rdparty/lexilla540/lexilla/test/examples/python/AllStyles.py.styled
vendored
Normal file
@ -0,0 +1,63 @@
|
||||
{1}# Enumerate all styles: 0 to 19{0}
|
||||
{1}# comment=1{0}
|
||||
|
||||
{1}# whitespace=0{0}
|
||||
{1}# w{0}
|
||||
|
||||
{1}# number=2{0}
|
||||
{2}37{0}
|
||||
|
||||
{1}# double-quoted-string=3{0}
|
||||
{3}"str"{0}
|
||||
|
||||
{1}# single-quoted-string=4{0}
|
||||
{4}'str'{0}
|
||||
|
||||
{1}# keyword=5{0}
|
||||
{5}pass{0}
|
||||
|
||||
{1}# triple-quoted-string=6{0}
|
||||
{6}'''str'''{0}
|
||||
|
||||
{1}# triple-double-quoted-string=7{0}
|
||||
{7}"""str"""{0}
|
||||
|
||||
{1}# class-name=8{0}
|
||||
{5}class{0} {8}ClassName{10}:{0}
|
||||
{5}pass{0}
|
||||
|
||||
{1}# function-name=9{0}
|
||||
{5}def{0} {9}function_name{10}():{0}
|
||||
{5}pass{0}
|
||||
|
||||
{1}# operator=10{0}
|
||||
{2}1{0} {10}+{0} {2}3{0}
|
||||
|
||||
{1}# identifier=11{0}
|
||||
{11}identifier{0} {10}={0} {2}2{0}
|
||||
|
||||
{1}# comment-block=12{0}
|
||||
{12}## block{0}
|
||||
|
||||
{1}# unclosed-string=13{0}
|
||||
{13}" unclosed
|
||||
{0}
|
||||
{1}# highlighted-identifier=14{0}
|
||||
{14}hilight{0} {10}={0} {2}2{0}
|
||||
|
||||
{1}# decorator=15{0}
|
||||
{15}@staticmethod{0}
|
||||
{5}def{0} {9}fn{10}():{0} {5}pass{0}
|
||||
|
||||
{11}a{0} {10}={0} {2}1{0}
|
||||
{1}# double-quoted-f-string=16{0}
|
||||
{16}f"{{11}a{16}}"{0}
|
||||
|
||||
{1}# single-quoted-f-string=17{0}
|
||||
{17}f'{{11}a{17}}'{0}
|
||||
|
||||
{1}# triple-quoted-f-string=18{0}
|
||||
{18}f'''{{11}a{18}}'''{0}
|
||||
|
||||
{1}# double-triple-quoted-f-string=19{0}
|
||||
{19}f"""{{11}a{19}}"""{0}
|
5
3rdparty/lexilla540/lexilla/test/examples/python/SciTE.properties
vendored
Normal file
5
3rdparty/lexilla540/lexilla/test/examples/python/SciTE.properties
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
lexer.*.py=python
|
||||
keywords.*.py=case class def else for if import in match pass print return while with yield
|
||||
keywords2.*.py=hilight
|
||||
fold=1
|
||||
fold.compact=1
|
11
3rdparty/lexilla540/lexilla/test/examples/python/attributes/SciTE.properties
vendored
Normal file
11
3rdparty/lexilla540/lexilla/test/examples/python/attributes/SciTE.properties
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
lexer.*.py=python
|
||||
keywords.*.py=class def else for if import in pass print return while with yield
|
||||
keywords2.*.py=hilight
|
||||
fold=1
|
||||
fold.compact=1
|
||||
lexer.python.identifier.attributes=1
|
||||
lexer.python.decorator.attributes=1
|
||||
|
||||
substyles.python.11=3
|
||||
substylewords.11.3.$(file.patterns.py)=findall replace
|
||||
style.python.11.3=fore:#EEAA80,italics,bold
|
17
3rdparty/lexilla540/lexilla/test/examples/python/attributes/attributes.py
vendored
Normal file
17
3rdparty/lexilla540/lexilla/test/examples/python/attributes/attributes.py
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
# attributes=20
|
||||
s = "thing thing".findall("thing")
|
||||
a.very.complicated.expression.findall("test")
|
||||
# fake out.
|
||||
b.very.complicated.expression.
|
||||
findall("test2")
|
||||
c.very.complicated.expression. \
|
||||
findall("test3")
|
||||
d.very.complicated.expression.\
|
||||
findall("test4")
|
||||
@staticmethod.attrtest
|
||||
@staticmethod.
|
||||
attrtest
|
||||
@staticmethod. \
|
||||
attrtest
|
||||
@staticmethod.\
|
||||
attrtest
|
18
3rdparty/lexilla540/lexilla/test/examples/python/attributes/attributes.py.folded
vendored
Normal file
18
3rdparty/lexilla540/lexilla/test/examples/python/attributes/attributes.py.folded
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
0 400 0 # attributes=20
|
||||
0 400 0 s = "thing thing".findall("thing")
|
||||
0 400 0 a.very.complicated.expression.findall("test")
|
||||
0 400 0 # fake out.
|
||||
2 400 0 + b.very.complicated.expression.
|
||||
0 404 0 | findall("test2")
|
||||
2 400 0 + c.very.complicated.expression. \
|
||||
0 404 0 | findall("test3")
|
||||
2 400 0 + d.very.complicated.expression.\
|
||||
0 404 0 | findall("test4")
|
||||
0 400 0 @staticmethod.attrtest
|
||||
0 400 0 @staticmethod.
|
||||
0 400 0 attrtest
|
||||
0 400 0 @staticmethod. \
|
||||
0 400 0 attrtest
|
||||
0 400 0 @staticmethod.\
|
||||
0 400 0 attrtest
|
||||
1 400 0
|
17
3rdparty/lexilla540/lexilla/test/examples/python/attributes/attributes.py.styled
vendored
Normal file
17
3rdparty/lexilla540/lexilla/test/examples/python/attributes/attributes.py.styled
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
{1}# attributes=20{0}
|
||||
{11}s{0} {10}={0} {3}"thing thing"{10}.{20}findall{10}({3}"thing"{10}){0}
|
||||
{11}a{10}.{20}very{10}.{20}complicated{10}.{20}expression{10}.{20}findall{10}({3}"test"{10}){0}
|
||||
{1}# fake out.{0}
|
||||
{11}b{10}.{20}very{10}.{20}complicated{10}.{20}expression{10}.{0}
|
||||
{20}findall{10}({3}"test2"{10}){0}
|
||||
{11}c{10}.{20}very{10}.{20}complicated{10}.{20}expression{10}.{0} \
|
||||
{20}findall{10}({3}"test3"{10}){0}
|
||||
{11}d{10}.{20}very{10}.{20}complicated{10}.{20}expression{10}.{0}\
|
||||
{20}findall{10}({3}"test4"{10}){0}
|
||||
{15}@staticmethod{10}.{15}attrtest{0}
|
||||
{15}@staticmethod{10}.{0}
|
||||
{15}attrtest{0}
|
||||
{15}@staticmethod{10}.{0} \
|
||||
{15}attrtest{0}
|
||||
{15}@staticmethod{10}.{0}\
|
||||
{15}attrtest{0}
|
16
3rdparty/lexilla540/lexilla/test/examples/python/f-strings.py
vendored
Normal file
16
3rdparty/lexilla540/lexilla/test/examples/python/f-strings.py
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
# Simple nesting
|
||||
f" { "" } "
|
||||
|
||||
# Multi-line field with comment
|
||||
f" {
|
||||
|
||||
"" # comment
|
||||
|
||||
} "
|
||||
|
||||
# Single quoted continued with \
|
||||
f" \
|
||||
"
|
||||
|
||||
# 4 nested f-strings
|
||||
f'Outer {f"nested {1} {f"nested {2} {f"nested {3} {f"nested {4}"}"}"}"}'
|
17
3rdparty/lexilla540/lexilla/test/examples/python/f-strings.py.folded
vendored
Normal file
17
3rdparty/lexilla540/lexilla/test/examples/python/f-strings.py.folded
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
0 400 0 # Simple nesting
|
||||
0 400 0 f" { "" } "
|
||||
1 400 0
|
||||
0 400 0 # Multi-line field with comment
|
||||
0 400 0 f" {
|
||||
1 400 0
|
||||
0 400 0 "" # comment
|
||||
1 400 0
|
||||
0 400 0 } "
|
||||
1 400 0
|
||||
0 400 0 # Single quoted continued with \
|
||||
0 400 0 f" \
|
||||
0 400 0 "
|
||||
1 400 0
|
||||
0 400 0 # 4 nested f-strings
|
||||
0 400 0 f'Outer {f"nested {1} {f"nested {2} {f"nested {3} {f"nested {4}"}"}"}"}'
|
||||
1 400 0
|
16
3rdparty/lexilla540/lexilla/test/examples/python/f-strings.py.styled
vendored
Normal file
16
3rdparty/lexilla540/lexilla/test/examples/python/f-strings.py.styled
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
{1}# Simple nesting{0}
|
||||
{16}f" {{0} {3}""{0} {16}} "{0}
|
||||
|
||||
{1}# Multi-line field with comment{0}
|
||||
{16}f" {{0}
|
||||
|
||||
{3}""{0} {1}# comment{0}
|
||||
|
||||
{16}} "{0}
|
||||
|
||||
{1}# Single quoted continued with \{0}
|
||||
{16}f" \
|
||||
"{0}
|
||||
|
||||
{1}# 4 nested f-strings{0}
|
||||
{17}f'Outer {{16}f"nested {{2}1{16}} {f"nested {{2}2{16}} {f"nested {{2}3{16}} {f"nested {{2}4{16}}"}"}"}"{17}}'{0}
|
25
3rdparty/lexilla540/lexilla/test/examples/python/matchcase.py
vendored
Normal file
25
3rdparty/lexilla540/lexilla/test/examples/python/matchcase.py
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
# Match and case as keywords
|
||||
match (x):
|
||||
case +1:
|
||||
pass
|
||||
case -1:
|
||||
pass
|
||||
case []:
|
||||
pass
|
||||
|
||||
# Match and case as identifiers
|
||||
match = 1
|
||||
def match():
|
||||
pass
|
||||
match.group()
|
||||
1 + match
|
||||
case.attribute
|
||||
|
||||
# Unfortunately wrong classifications; should be rare in real code because
|
||||
# non-call expressions usually don't begin lines, the exceptions are match(x)
|
||||
# and case(x)
|
||||
match(x)
|
||||
case(x)
|
||||
match + 1
|
||||
case + 1
|
||||
case[1]
|
26
3rdparty/lexilla540/lexilla/test/examples/python/matchcase.py.folded
vendored
Normal file
26
3rdparty/lexilla540/lexilla/test/examples/python/matchcase.py.folded
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
0 400 0 # Match and case as keywords
|
||||
2 400 0 + match (x):
|
||||
2 404 0 + case +1:
|
||||
0 408 0 | pass
|
||||
2 404 0 + case -1:
|
||||
0 408 0 | pass
|
||||
2 404 0 + case []:
|
||||
0 408 0 | pass
|
||||
1 408 0 |
|
||||
0 400 0 # Match and case as identifiers
|
||||
0 400 0 match = 1
|
||||
2 400 0 + def match():
|
||||
0 404 0 | pass
|
||||
0 400 0 match.group()
|
||||
0 400 0 1 + match
|
||||
0 400 0 case.attribute
|
||||
1 400 0
|
||||
0 400 0 # Unfortunately wrong classifications; should be rare in real code because
|
||||
0 400 0 # non-call expressions usually don't begin lines, the exceptions are match(x)
|
||||
0 400 0 # and case(x)
|
||||
0 400 0 match(x)
|
||||
0 400 0 case(x)
|
||||
0 400 0 match + 1
|
||||
0 400 0 case + 1
|
||||
0 400 0 case[1]
|
||||
1 400 0
|
25
3rdparty/lexilla540/lexilla/test/examples/python/matchcase.py.styled
vendored
Normal file
25
3rdparty/lexilla540/lexilla/test/examples/python/matchcase.py.styled
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
{1}# Match and case as keywords{0}
|
||||
{5}match{0} {10}({11}x{10}):{0}
|
||||
{5}case{0} {10}+{2}1{10}:{0}
|
||||
{5}pass{0}
|
||||
{5}case{0} {10}-{2}1{10}:{0}
|
||||
{5}pass{0}
|
||||
{5}case{0} {10}[]:{0}
|
||||
{5}pass{0}
|
||||
|
||||
{1}# Match and case as identifiers{0}
|
||||
{11}match{0} {10}={0} {2}1{0}
|
||||
{5}def{0} {9}match{10}():{0}
|
||||
{5}pass{0}
|
||||
{11}match{10}.{11}group{10}(){0}
|
||||
{2}1{0} {10}+{0} {11}match{0}
|
||||
{11}case{10}.{11}attribute{0}
|
||||
|
||||
{1}# Unfortunately wrong classifications; should be rare in real code because{0}
|
||||
{1}# non-call expressions usually don't begin lines, the exceptions are match(x){0}
|
||||
{1}# and case(x){0}
|
||||
{5}match{10}({11}x{10}){0}
|
||||
{5}case{10}({11}x{10}){0}
|
||||
{5}match{0} {10}+{0} {2}1{0}
|
||||
{5}case{0} {10}+{0} {2}1{0}
|
||||
{5}case{10}[{2}1{10}]{0}
|
16
3rdparty/lexilla540/lexilla/test/examples/python/strings.py
vendored
Normal file
16
3rdparty/lexilla540/lexilla/test/examples/python/strings.py
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
# Simple raw string
|
||||
r''
|
||||
|
||||
# Raw f-string
|
||||
rf''
|
||||
fr''
|
||||
|
||||
# Raw byte string
|
||||
rb''
|
||||
br''
|
||||
|
||||
# Raw unicode strings: ur'' is valid in 2.7 (but not in 3) -- always lexed as
|
||||
# valid; ru'' is never valid
|
||||
ru''
|
||||
ur''
|
||||
|
17
3rdparty/lexilla540/lexilla/test/examples/python/strings.py.folded
vendored
Normal file
17
3rdparty/lexilla540/lexilla/test/examples/python/strings.py.folded
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
0 400 0 # Simple raw string
|
||||
0 400 0 r''
|
||||
1 400 0
|
||||
0 400 0 # Raw f-string
|
||||
0 400 0 rf''
|
||||
0 400 0 fr''
|
||||
1 400 0
|
||||
0 400 0 # Raw byte string
|
||||
0 400 0 rb''
|
||||
0 400 0 br''
|
||||
1 400 0
|
||||
0 400 0 # Raw unicode strings: ur'' is valid in 2.7 (but not in 3) -- always lexed as
|
||||
0 400 0 # valid; ru'' is never valid
|
||||
0 400 0 ru''
|
||||
0 400 0 ur''
|
||||
1 400 0
|
||||
1 400 0
|
16
3rdparty/lexilla540/lexilla/test/examples/python/strings.py.styled
vendored
Normal file
16
3rdparty/lexilla540/lexilla/test/examples/python/strings.py.styled
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
{1}# Simple raw string{0}
|
||||
{4}r''{0}
|
||||
|
||||
{1}# Raw f-string{0}
|
||||
{17}rf''{0}
|
||||
{17}fr''{0}
|
||||
|
||||
{1}# Raw byte string{0}
|
||||
{4}rb''{0}
|
||||
{4}br''{0}
|
||||
|
||||
{1}# Raw unicode strings: ur'' is valid in 2.7 (but not in 3) -- always lexed as{0}
|
||||
{1}# valid; ru'' is never valid{0}
|
||||
{11}ru{4}''{0}
|
||||
{4}ur''{0}
|
||||
|
19
3rdparty/lexilla540/lexilla/test/examples/python/x.py
vendored
Normal file
19
3rdparty/lexilla540/lexilla/test/examples/python/x.py
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
# Convert all punctuation characters except '_', '*', and '.' into spaces.
|
||||
def depunctuate(s):
|
||||
'''A docstring'''
|
||||
"""Docstring 2"""
|
||||
d = ""
|
||||
for ch in s:
|
||||
if ch in 'abcde':
|
||||
d = d + ch
|
||||
else:
|
||||
d = d + " "
|
||||
return d
|
||||
|
||||
import contextlib
|
||||
|
||||
@contextlib.contextmanager
|
||||
def singleuse():
|
||||
print("Before")
|
||||
yield
|
||||
with singleuse(): pass
|
20
3rdparty/lexilla540/lexilla/test/examples/python/x.py.folded
vendored
Normal file
20
3rdparty/lexilla540/lexilla/test/examples/python/x.py.folded
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
0 400 0 # Convert all punctuation characters except '_', '*', and '.' into spaces.
|
||||
2 400 0 + def depunctuate(s):
|
||||
0 408 0 | '''A docstring'''
|
||||
0 408 0 | """Docstring 2"""
|
||||
0 408 0 | d = ""
|
||||
2 408 0 + for ch in s:
|
||||
2 410 0 + if ch in 'abcde':
|
||||
0 418 0 | d = d + ch
|
||||
2 410 0 + else:
|
||||
0 418 0 | d = d + " "
|
||||
0 408 0 | return d
|
||||
1 400 0
|
||||
0 400 0 import contextlib
|
||||
1 400 0
|
||||
0 400 0 @contextlib.contextmanager
|
||||
2 400 0 + def singleuse():
|
||||
0 408 0 | print("Before")
|
||||
0 408 0 | yield
|
||||
0 400 0 with singleuse(): pass
|
||||
1 400 0
|
19
3rdparty/lexilla540/lexilla/test/examples/python/x.py.styled
vendored
Normal file
19
3rdparty/lexilla540/lexilla/test/examples/python/x.py.styled
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
{1}# Convert all punctuation characters except '_', '*', and '.' into spaces.{0}
|
||||
{5}def{0} {9}depunctuate{10}({11}s{10}):{0}
|
||||
{6}'''A docstring'''{0}
|
||||
{7}"""Docstring 2"""{0}
|
||||
{11}d{0} {10}={0} {3}""{0}
|
||||
{5}for{0} {11}ch{0} {5}in{0} {11}s{10}:{0}
|
||||
{5}if{0} {11}ch{0} {5}in{0} {4}'abcde'{10}:{0}
|
||||
{11}d{0} {10}={0} {11}d{0} {10}+{0} {11}ch{0}
|
||||
{5}else{10}:{0}
|
||||
{11}d{0} {10}={0} {11}d{0} {10}+{0} {3}" "{0}
|
||||
{5}return{0} {11}d{0}
|
||||
|
||||
{5}import{0} {11}contextlib{0}
|
||||
|
||||
{15}@contextlib{10}.{11}contextmanager{0}
|
||||
{5}def{0} {9}singleuse{10}():{0}
|
||||
{5}print{10}({3}"Before"{10}){0}
|
||||
{5}yield{0}
|
||||
{5}with{0} {11}singleuse{10}():{0} {5}pass{0}
|
Reference in New Issue
Block a user