fix build under newer KConfig by bump cmake min version

This commit is contained in:
2024-09-04 19:01:58 +08:00
parent 727a2ec214
commit 9fb3681e3a
1022 changed files with 4414 additions and 1375 deletions

View File

@ -0,0 +1,62 @@
# Enumerate all styles: 0 to 16
# line comment = 1
# more comment
# whitespace = 0
# spaces
# string = 2
"a string"
# character = 3
'c'
# number = 4
123
# variable = 5
$variable
# operator = 6
();
# identifier = 7
identifier
# keyword = 8
break
;
# cmdlet = 9
Write-Output "test output"
# alias = 10
chdir C:\Temp\
# function = 11
Get-Verb -Group Security
# user-defined keyword = 12
lexilla
# multi-line comment = 13
<#
multi-line comment
#>
# here string = 14
@"
here string double
"@
# here string single quote = 15
@'
here string single
'@
# comment keyword = 16
<#
.synopsis
End of file.
#>

View File

@ -0,0 +1,63 @@
0 400 400 # Enumerate all styles: 0 to 16
1 400 400
0 400 400 # line comment = 1
0 400 400 # more comment
1 400 400
0 400 400 # whitespace = 0
0 400 400 # spaces
1 400 400
0 400 400 # string = 2
0 400 400 "a string"
1 400 400
0 400 400 # character = 3
0 400 400 'c'
1 400 400
0 400 400 # number = 4
0 400 400 123
1 400 400
0 400 400 # variable = 5
0 400 400 $variable
1 400 400
0 400 400 # operator = 6
0 400 400 ();
1 400 400
0 400 400 # identifier = 7
0 400 400 identifier
1 400 400
0 400 400 # keyword = 8
0 400 400 break
0 400 400 ;
1 400 400
0 400 400 # cmdlet = 9
0 400 400 Write-Output "test output"
1 400 400
0 400 400 # alias = 10
0 400 400 chdir C:\Temp\
1 400 400
0 400 400 # function = 11
0 400 400 Get-Verb -Group Security
1 400 400
0 400 400 # user-defined keyword = 12
0 400 400 lexilla
1 400 400
0 400 400 # multi-line comment = 13
0 400 400 <#
0 400 400 multi-line comment
0 400 400 #>
1 400 400
0 400 400 # here string = 14
0 400 400 @"
0 400 400 here string double
0 400 400 "@
1 400 400
0 400 400 # here string single quote = 15
0 400 400 @'
0 400 400 here string single
0 400 400 '@
1 400 400
0 400 400 # comment keyword = 16
0 400 400 <#
0 400 400 .synopsis
0 400 400 End of file.
0 400 400 #>
0 400 0

View File

@ -0,0 +1,62 @@
{1}# Enumerate all styles: 0 to 16{0}
{1}# line comment = 1{0}
{1}# more comment{0}
{1}# whitespace = 0{0}
{1}# spaces{0}
{1}# string = 2{0}
{2}"a string"{0}
{1}# character = 3{0}
{3}'c'{0}
{1}# number = 4{0}
{4}123{0}
{1}# variable = 5{0}
{5}$variable{0}
{1}# operator = 6{0}
{6}();{0}
{1}# identifier = 7{0}
{7}identifier{0}
{1}# keyword = 8{0}
{8}break{0}
{6};{0}
{1}# cmdlet = 9{0}
{9}Write-Output{0} {2}"test output"{0}
{1}# alias = 10{0}
{10}chdir{0} {7}C{6}:{0}\{7}Temp{0}\
{1}# function = 11{0}
{11}Get-Verb{0} {6}-{7}Group{0} {7}Security{0}
{1}# user-defined keyword = 12{0}
{12}lexilla{0}
{1}# multi-line comment = 13{0}
{13}<#
multi-line comment
#>{0}
{1}# here string = 14{0}
{14}@"
here string double
"@{0}
{1}# here string single quote = 15{0}
{15}@'
here string single
'@{0}
{1}# comment keyword = 16{0}
{13}<#
{16}.synopsis{13}
End of file.
#>{0}

View File

@ -0,0 +1,9 @@
# -*- coding: utf-8 -*-
# Show problem with character value truncation causing U+0121 'ġ' (LATIN SMALL LETTER G WITH DOT ABOVE)
# to be styled as an operator as static_cast<char>(0x121) = 0x21 == '!' which is an operator
# Isolate
ġ
# Continuing from operator
(ġ)

View File

@ -0,0 +1,10 @@
0 400 400 # -*- coding: utf-8 -*-
0 400 400 # Show problem with character value truncation causing U+0121 'ġ' (LATIN SMALL LETTER G WITH DOT ABOVE)
0 400 400 # to be styled as an operator as static_cast<char>(0x121) = 0x21 == '!' which is an operator
1 400 400
0 400 400 # Isolate
0 400 400 ġ
1 400 400
0 400 400 # Continuing from operator
0 400 400 (ġ)
0 400 0

View File

@ -0,0 +1,9 @@
{1}# -*- coding: utf-8 -*-{0}
{1}# Show problem with character value truncation causing U+0121 'ġ' (LATIN SMALL LETTER G WITH DOT ABOVE){0}
{1}# to be styled as an operator as static_cast<char>(0x121) = 0x21 == '!' which is an operator{0}
{1}# Isolate{0}
{7}ġ{0}
{1}# Continuing from operator{0}
{6}({7}ġ{6}){0}

View File

@ -0,0 +1,35 @@
# Treat any leading [-+] as default to reduce match complexity
# https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_numeric_literals?view=powershell-7.3#examples
100
100u
100D
100l
100uL
100us
100uy
100y
1e2
1.e2
0x1e2
0x1e2L
0x1e2D
482D
482gb
482ngb
0x1e2lgb
0b1011011
0xFFFFs
0xFFFFFFFF
-0xFFFFFFFF
0xFFFFFFFFu
# Float
0.5
.5
# Range
1..100
# Issue118: 7d is numeric while 7z is user defined keyword
7d
7z

View File

@ -0,0 +1,36 @@
0 400 400 # Treat any leading [-+] as default to reduce match complexity
0 400 400 # https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_numeric_literals?view=powershell-7.3#examples
0 400 400 100
0 400 400 100u
0 400 400 100D
0 400 400 100l
0 400 400 100uL
0 400 400 100us
0 400 400 100uy
0 400 400 100y
0 400 400 1e2
0 400 400 1.e2
0 400 400 0x1e2
0 400 400 0x1e2L
0 400 400 0x1e2D
0 400 400 482D
0 400 400 482gb
0 400 400 482ngb
0 400 400 0x1e2lgb
0 400 400 0b1011011
0 400 400 0xFFFFs
0 400 400 0xFFFFFFFF
0 400 400 -0xFFFFFFFF
0 400 400 0xFFFFFFFFu
1 400 400
0 400 400 # Float
0 400 400 0.5
0 400 400 .5
1 400 400
0 400 400 # Range
0 400 400 1..100
1 400 400
0 400 400 # Issue118: 7d is numeric while 7z is user defined keyword
0 400 400 7d
0 400 400 7z
0 400 0

View File

@ -0,0 +1,35 @@
{1}# Treat any leading [-+] as default to reduce match complexity{0}
{1}# https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_numeric_literals?view=powershell-7.3#examples{0}
{4}100{0}
{4}100u{0}
{4}100D{0}
{4}100l{0}
{4}100uL{0}
{4}100us{0}
{4}100uy{0}
{4}100y{0}
{4}1e2{0}
{4}1.e2{0}
{4}0x1e2{0}
{4}0x1e2L{0}
{4}0x1e2D{0}
{4}482D{0}
{4}482gb{0}
{4}482ngb{0}
{4}0x1e2lgb{0}
{4}0b1011011{0}
{4}0xFFFFs{0}
{4}0xFFFFFFFF{0}
{6}-{4}0xFFFFFFFF{0}
{4}0xFFFFFFFFu{0}
{1}# Float{0}
{4}0.5{0}
{4}.5{0}
{1}# Range{0}
{4}1{6}..{4}100{0}
{1}# Issue118: 7d is numeric while 7z is user defined keyword{0}
{4}7d{0}
{12}7z{0}

View File

@ -0,0 +1,9 @@
<# Tests for PowerShell #>
<# Backticks should escape in double quoted strings #>
$double_quote_str_esc_1 = "`"XXX`""
$double_quote_str_esc_2 = "This `"string`" `$useses `r`n Backticks '``'"
<# Backticks should be ignored in quoted strings #>
$single_quote_str_esc_1 = 'XXX`'
$single_quote_str_esc_2 = 'XXX```'

View File

@ -0,0 +1,10 @@
0 400 400 <# Tests for PowerShell #>
1 400 400
0 400 400 <# Backticks should escape in double quoted strings #>
0 400 400 $double_quote_str_esc_1 = "`"XXX`""
0 400 400 $double_quote_str_esc_2 = "This `"string`" `$useses `r`n Backticks '``'"
1 400 400
0 400 400 <# Backticks should be ignored in quoted strings #>
0 400 400 $single_quote_str_esc_1 = 'XXX`'
0 400 400 $single_quote_str_esc_2 = 'XXX```'
0 400 0

View File

@ -0,0 +1,9 @@
{13}<# Tests for PowerShell #>{0}
{13}<# Backticks should escape in double quoted strings #>{0}
{5}$double_quote_str_esc_1{0} {6}={0} {2}"`"XXX`""{0}
{5}$double_quote_str_esc_2{0} {6}={0} {2}"This `"string`" `$useses `r`n Backticks '``'"{0}
{13}<# Backticks should be ignored in quoted strings #>{0}
{5}$single_quote_str_esc_1{0} {6}={0} {3}'XXX`'{0}
{5}$single_quote_str_esc_2{0} {6}={0} {3}'XXX```'{0}

View File

@ -0,0 +1 @@
# End comment before \r carriage return.

View File

@ -0,0 +1,2 @@
0 400 400 # End comment before \r carriage return.
0 400 0

View File

@ -0,0 +1 @@
{1}# End comment before \r carriage return.{0}

View File

@ -0,0 +1,9 @@
lexer.*.ps1=powershell
fold=1
keywords.*.ps1=break if else in local
keywords2.*.ps1=write-host write-output
keywords3.*.ps1=cd chdir cat
keywords4.*.ps1=mkdir prompt get-verb
keywords5.*.ps1=lexilla 7z
keywords6.*.ps1=synopsis