Update grammars

This commit is contained in:
Alex Ross 2021-05-04 13:41:54 +02:00
parent 80e5d07b89
commit df15c8e832
No known key found for this signature in database
GPG key ID: 89DDDBA66CBA7840
8 changed files with 162 additions and 130 deletions

View file

@ -6,11 +6,11 @@
"git": {
"name": "mmims/language-batchfile",
"repositoryUrl": "https://github.com/mmims/language-batchfile",
"commitHash": "95ea8c699f7a8296b15767069868532d52631c46"
"commitHash": "6154ae25a24e01ac9329e7bcf958e093cd8733a9"
}
},
"license": "MIT",
"version": "0.7.5"
"version": "0.7.6"
}
],
"version": 1

View file

@ -4,9 +4,18 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/mmims/language-batchfile/commit/95ea8c699f7a8296b15767069868532d52631c46",
"version": "https://github.com/mmims/language-batchfile/commit/6154ae25a24e01ac9329e7bcf958e093cd8733a9",
"name": "Batch File",
"scopeName": "source.batchfile",
"injections": {
"L:meta.block.repeat.batchfile": {
"patterns": [
{
"include": "#repeatParameter"
}
]
}
},
"patterns": [
{
"include": "#commands"
@ -46,7 +55,7 @@
"commands": {
"patterns": [
{
"match": "(?<=^|[\\s@])(?i:adprep|append|arp|assoc|at|atmadm|attrib|auditpol|autochk|autoconv|autofmt|bcdboot|bcdedit|bdehdcfg|bitsadmin|bootcfg|brea|cacls|cd|certreq|certutil|change|chcp|chdir|chglogon|chgport|chgusr|chkdsk|chkntfs|choice|cipher|clip|cls|clscluadmin|cluster|cmd|cmdkey|cmstp|color|comp|compact|convert|copy|cprofile|cscript|csvde|date|dcdiag|dcgpofix|dcpromo|defra|del|dfscmd|dfsdiag|dfsrmig|diantz|dir|dirquota|diskcomp|diskcopy|diskpart|diskperf|diskraid|diskshadow|dispdiag|doin|dnscmd|doskey|driverquery|dsacls|dsadd|dsamain|dsdbutil|dsget|dsmgmt|dsmod|dsmove|dsquery|dsrm|edit|endlocal|eraseesentutl|eventcreate|eventquery|eventtriggers|evntcmd|expand|extract|fc|filescrn|find|findstr|finger|flattemp|fonde|forfiles|format|freedisk|fsutil|ftp|ftype|fveupdate|getmac|gettype|gpfixup|gpresult|gpupdate|graftabl|hashgen|hep|helpctr|hostname|icacls|iisreset|inuse|ipconfig|ipxroute|irftp|ismserv|jetpack|klist|ksetup|ktmutil|ktpass|label|ldifd|ldp|lodctr|logman|logoff|lpq|lpr|macfile|makecab|manage-bde|mapadmin|md|mkdir|mklink|mmc|mode|more|mount|mountvol|move|mqbup|mqsvc|mqtgsvc|msdt|msg|msiexec|msinfo32|mstsc|nbtstat|net computer|net group|net localgroup|net print|net session|net share|net start|net stop|net use|net user|net view|net|netcfg|netdiag|netdom|netsh|netstat|nfsadmin|nfsshare|nfsstat|nlb|nlbmgr|nltest|nslookup|ntackup|ntcmdprompt|ntdsutil|ntfrsutl|openfiles|pagefileconfig|path|pathping|pause|pbadmin|pentnt|perfmon|ping|pnpunatten|pnputil|popd|powercfg|powershell|powershell_ise|print|prncnfg|prndrvr|prnjobs|prnmngr|prnport|prnqctl|prompt|pubprn|pushd|pushprinterconnections|pwlauncher|qappsrv|qprocess|query|quser|qwinsta|rasdial|rcp|rd|rdpsign|regentc|recover|redircmp|redirusr|reg|regini|regsvr32|relog|ren|rename|rendom|repadmin|repair-bde|replace|reset session|rxec|risetup|rmdir|robocopy|route|rpcinfo|rpcping|rsh|runas|rundll32|rwinsta|scp|sc|schtasks|scwcmd|secedit|serverceipoptin|servrmanagercmd|serverweroptin|setspn|setx|sfc|shadow|shift|showmount|shutdown|sort|ssh|start|storrept|subst|sxstrace|ysocmgr|systeminfo|takeown|tapicfg|taskkill|tasklist|tcmsetup|telnet|tftp|time|timeout|title|tlntadmn|tpmvscmgr|tpmvscmgr|tacerpt|tracert|tree|tscon|tsdiscon|tsecimp|tskill|tsprof|type|typeperf|tzutil|uddiconfig|umount|unlodctr|ver|verifier|verif|vol|vssadmin|w32tm|waitfor|wbadmin|wdsutil|wecutil|wevtutil|where|whoami|winnt|winnt32|winpop|winrm|winrs|winsat|wlbs|mic|wscript|xcopy)(?=$|\\s)",
"match": "(?<=^|[\\s@])(?i:adprep|append|arp|assoc|at|atmadm|attrib|auditpol|autochk|autoconv|autofmt|bcdboot|bcdedit|bdehdcfg|bitsadmin|bootcfg|brea|cacls|cd|certreq|certutil|change|chcp|chdir|chglogon|chgport|chgusr|chkdsk|chkntfs|choice|cipher|clip|cls|clscluadmin|cluster|cmd|cmdkey|cmstp|color|comp|compact|convert|copy|cprofile|cscript|csvde|date|dcdiag|dcgpofix|dcpromo|defra|del|dfscmd|dfsdiag|dfsrmig|diantz|dir|dirquota|diskcomp|diskcopy|diskpart|diskperf|diskraid|diskshadow|dispdiag|doin|dnscmd|doskey|driverquery|dsacls|dsadd|dsamain|dsdbutil|dsget|dsmgmt|dsmod|dsmove|dsquery|dsrm|edit|endlocal|eraseesentutl|eventcreate|eventquery|eventtriggers|evntcmd|expand|extract|fc|filescrn|find|findstr|finger|flattemp|fonde|forfiles|format|freedisk|fsutil|ftp|ftype|fveupdate|getmac|gettype|gpfixup|gpresult|gpupdate|graftabl|hashgen|hep|helpctr|hostname|icacls|iisreset|inuse|ipconfig|ipxroute|irftp|ismserv|jetpack|klist|ksetup|ktmutil|ktpass|label|ldifd|ldp|lodctr|logman|logoff|lpq|lpr|macfile|makecab|manage-bde|mapadmin|md|mkdir|mklink|mmc|mode|more|mount|mountvol|move|mqbup|mqsvc|mqtgsvc|msdt|msg|msiexec|msinfo32|mstsc|nbtstat|net computer|net group|net localgroup|net print|net session|net share|net start|net stop|net use|net user|net view|net|netcfg|netdiag|netdom|netsh|netstat|nfsadmin|nfsshare|nfsstat|nlb|nlbmgr|nltest|nslookup|ntackup|ntcmdprompt|ntdsutil|ntfrsutl|openfiles|pagefileconfig|path|pathping|pause|pbadmin|pentnt|perfmon|ping|pnpunatten|pnputil|popd|powercfg|powershell|powershell_ise|print|prncnfg|prndrvr|prnjobs|prnmngr|prnport|prnqctl|prompt|pubprn|pushd|pushprinterconnections|pwlauncher|qappsrv|qprocess|query|quser|qwinsta|rasdial|rcp|rd|rdpsign|regentc|recover|redircmp|redirusr|reg|regini|regsvr32|relog|ren|rename|rendom|repadmin|repair-bde|replace|reset session|rxec|risetup|rmdir|robocopy|route|rpcinfo|rpcping|rsh|runas|rundll32|rwinsta|sc|schtasks|scp|scwcmd|secedit|serverceipoptin|servrmanagercmd|serverweroptin|setspn|setx|sfc|sftp|shadow|shift|showmount|shutdown|sort|ssh|ssh-add|ssh-agent|ssh-keygen|ssh-keyscan|start|storrept|subst|sxstrace|ysocmgr|systeminfo|takeown|tapicfg|taskkill|tasklist|tcmsetup|telnet|tftp|time|timeout|title|tlntadmn|tpmvscmgr|tpmvscmgr|tacerpt|tracert|tree|tscon|tsdiscon|tsecimp|tskill|tsprof|type|typeperf|tzutil|uddiconfig|umount|unlodctr|ver|verifier|verif|vol|vssadmin|w32tm|waitfor|wbadmin|wdsutil|wecutil|wevtutil|where|whoami|winnt|winnt32|winpop|winrm|winrs|winsat|wlbs|wmic|wscript|wsl|xcopy)(?=$|\\s)",
"name": "keyword.command.batchfile"
},
{
@ -285,7 +294,7 @@
"name": "keyword.operator.logical.batchfile"
},
{
"match": "([^ ][^=]*)(=)",
"match": "([^ =]*)(=)",
"captures": {
"1": {
"name": "variable.other.readwrite.batchfile"
@ -420,8 +429,38 @@
"name": "keyword.control.conditional.batchfile"
},
{
"match": "(?<=^|\\s)(?i)for(?=\\s)",
"name": "keyword.control.repeat.batchfile"
"begin": "(?<=^|[\\s(&^])(?i)for(?=\\s)",
"beginCaptures": {
"0": {
"name": "keyword.control.repeat.batchfile"
}
},
"name": "meta.block.repeat.batchfile",
"end": "\\n",
"patterns": [
{
"begin": "(?<=[\\s^])(?i)in(?=\\s)",
"beginCaptures": {
"0": {
"name": "keyword.control.repeat.in.batchfile"
}
},
"end": "(?<=[\\s)^])(?i)do(?=\\s)|\\n",
"endCaptures": {
"0": {
"name": "keyword.control.repeat.do.batchfile"
}
},
"patterns": [
{
"include": "$self"
}
]
},
{
"include": "$self"
}
]
}
]
},
@ -436,7 +475,7 @@
"labels": {
"patterns": [
{
"match": "(?i)(?:^\\s*|(?<=goto)\\s*)(:)([^+=,;:\\s].*)$",
"match": "(?i)(?:^\\s*|(?<=call|goto)\\s*)(:)([^+=,;:\\s]\\S*)",
"captures": {
"1": {
"name": "punctuation.separator.batchfile"
@ -512,6 +551,19 @@
}
]
},
"repeatParameter": {
"patterns": [
{
"match": "(%%)(?:(?i:~[fdpnxsatz]*(?:\\$PATH:)?)?[a-zA-Z])",
"captures": {
"1": {
"name": "punctuation.definition.variable.batchfile"
}
},
"name": "variable.parameter.repeat.batchfile"
}
]
},
"strings": {
"patterns": [
{
@ -546,15 +598,13 @@
"variables": {
"patterns": [
{
"match": "(%)((~([fdpnxsatz]|\\$PATH:)*)?\\d|\\*)",
"match": "(%)(?:(?i:~[fdpnxsatz]*(?:\\$PATH:)?)?\\d|\\*)",
"captures": {
"1": {
"name": "punctuation.definition.variable.batchfile"
},
"2": {
"name": "variable.parameter.batchfile"
}
}
},
"name": "variable.parameter.batchfile"
},
{
"include": "#variable"

View file

@ -6,11 +6,11 @@
"git": {
"name": "language-php",
"repositoryUrl": "https://github.com/atom/language-php",
"commitHash": "72739e6341b1b4bf4aa185e928932983baca449e"
"commitHash": "2bf736a814e1a58aa63470c1a29590bd02e924e7"
}
},
"license": "MIT",
"version": "0.46.0"
"version": "0.46.2"
}
],
"version": 1

View file

@ -4,111 +4,10 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/atom/language-php/commit/b6c5e83016b52311cdc622c2579462861ee91587",
"version": "https://github.com/atom/language-php/commit/2bf736a814e1a58aa63470c1a29590bd02e924e7",
"name": "PHP",
"scopeName": "text.html.php",
"injections": {
"L:source.php string.quoted.single.sql.php source.sql.embedded.php": {
"patterns": [
{
"match": "(#)(\\\\'|[^'])*(?='|$)",
"name": "comment.line.number-sign.sql",
"captures": {
"1": {
"name": "punctuation.definition.comment.sql"
}
}
},
{
"match": "(--)(\\\\'|[^'])*(?='|$)",
"name": "comment.line.double-dash.sql",
"captures": {
"1": {
"name": "punctuation.definition.comment.sql"
}
}
},
{
"match": "\\\\[\\\\'`\"]",
"name": "constant.character.escape.php"
},
{
"match": "\"(?=((\\\\\")|[^\"'])*('|$))",
"name": "string.quoted.double.unclosed.sql"
}
]
},
"L:source.php string.quoted.double.sql.php source.sql.embedded.php": {
"patterns": [
{
"match": "(#)(\\\\\"|[^\"])*(?=\"|$)",
"name": "comment.line.number-sign.sql",
"captures": {
"1": {
"name": "punctuation.definition.comment.sql"
}
}
},
{
"match": "(--)(\\\\\"|[^\"])*(?=\"|$)",
"name": "comment.line.double-dash.sql",
"captures": {
"1": {
"name": "punctuation.definition.comment.sql"
}
}
},
{
"match": "\\\\[\\\\'`\"]",
"name": "constant.character.escape.php"
},
{
"match": "(')([^'\\\\]*)(')",
"name": "string.quoted.single.sql",
"captures": {
"1": {
"name": "punctuation.definition.string.begin.sql"
},
"2": {
"patterns": [
{
"include": "source.php#interpolation_double_quoted"
}
]
},
"3": {
"name": "punctuation.definition.string.end.sql"
}
}
},
{
"match": "(`)([^`\\\\]*)(`)",
"name": "string.quoted.other.backtick.sql",
"captures": {
"1": {
"name": "punctuation.definition.string.begin.sql"
},
"2": {
"patterns": [
{
"include": "source.php#interpolation_double_quoted"
}
]
},
"3": {
"name": "punctuation.definition.string.end.sql"
}
}
},
{
"match": "'(?=((\\\\')|[^'\"])*(\"|$))",
"name": "string.quoted.single.unclosed.sql"
},
{
"include": "source.php#interpolation_double_quoted"
}
]
},
"text.html.php - (meta.embedded | meta.tag), L:((text.html.php meta.tag) - (meta.embedded.block.php | meta.embedded.line.php)), L:(source.js - (meta.embedded.block.php | meta.embedded.line.php)), L:(source.css - (meta.embedded.block.php | meta.embedded.line.php))": {
"patterns": [
{

View file

@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/atom/language-php/commit/5fae657cf989701e9594912772daff33249839b3",
"version": "https://github.com/atom/language-php/commit/2bf736a814e1a58aa63470c1a29590bd02e924e7",
"scopeName": "source.php",
"patterns": [
{
@ -2824,6 +2824,59 @@
},
"name": "string.quoted.double.sql.php",
"patterns": [
{
"match": "(#)(\\\\\"|[^\"])*(?=\"|$)",
"name": "comment.line.number-sign.sql",
"captures": {
"1": {
"name": "punctuation.definition.comment.sql"
}
}
},
{
"match": "(--)(\\\\\"|[^\"])*(?=\"|$)",
"name": "comment.line.double-dash.sql",
"captures": {
"1": {
"name": "punctuation.definition.comment.sql"
}
}
},
{
"match": "\\\\[\\\\\"`']",
"name": "constant.character.escape.php"
},
{
"match": "'(?=((\\\\')|[^'\"])*(\"|$))",
"name": "string.quoted.single.unclosed.sql"
},
{
"match": "`(?=((\\\\`)|[^`\"])*(\"|$))",
"name": "string.quoted.other.backtick.unclosed.sql"
},
{
"begin": "'",
"end": "'",
"name": "string.quoted.single.sql",
"patterns": [
{
"include": "#interpolation_double_quoted"
}
]
},
{
"begin": "`",
"end": "`",
"name": "string.quoted.other.backtick.sql",
"patterns": [
{
"include": "#interpolation_double_quoted"
}
]
},
{
"include": "#interpolation_double_quoted"
},
{
"include": "source.sql"
}
@ -2845,6 +2898,36 @@
},
"name": "string.quoted.single.sql.php",
"patterns": [
{
"match": "(#)(\\\\'|[^'])*(?='|$)",
"name": "comment.line.number-sign.sql",
"captures": {
"1": {
"name": "punctuation.definition.comment.sql"
}
}
},
{
"match": "(--)(\\\\'|[^'])*(?='|$)",
"name": "comment.line.double-dash.sql",
"captures": {
"1": {
"name": "punctuation.definition.comment.sql"
}
}
},
{
"match": "\\\\[\\\\'`\"]",
"name": "constant.character.escape.php"
},
{
"match": "`(?=((\\\\`)|[^`'])*('|$))",
"name": "string.quoted.other.backtick.unclosed.sql"
},
{
"match": "\"(?=((\\\\\")|[^\"'])*('|$))",
"name": "string.quoted.double.unclosed.sql"
},
{
"include": "source.sql"
}
@ -3685,4 +3768,4 @@
"name": "keyword.operator.null-coalescing.php"
}
}
}
}

View file

@ -6,12 +6,12 @@
"git": {
"name": "atom/language-sass",
"repositoryUrl": "https://github.com/atom/language-sass",
"commitHash": "303bbf0c250fe380b9e57375598cfd916110758b"
"commitHash": "f52ab12f7f9346cc2568129d8c4419bd3d506b47"
}
},
"license": "MIT",
"description": "The file syntaxes/scss.json was derived from the Atom package https://github.com/atom/language-sass which was originally converted from the TextMate bundle https://github.com/alexsancho/SASS.tmbundle.",
"version": "0.61.4"
"version": "0.62.1"
}
],
"version": 1

View file

@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/textmate/swift.tmbundle/commit/2ee3d7c63f7dd2c769167278b48e3716d1b60b26",
"version": "https://github.com/textmate/swift.tmbundle/commit/8c7672d74c1baa4e6944a05ac6c57a623532f18b",
"name": "Swift",
"scopeName": "source.swift",
"comment": "See swift.tmbundle/grammar-test.swift for test cases.",
@ -1280,7 +1280,7 @@
"name": "meta.import.swift",
"patterns": [
{
"begin": "\\G(?!;|$|//|/\\*)(?:(typealias|struct|class|enum|protocol|var|func)\\s+)?",
"begin": "\\G(?!;|$|//|/\\*)(?:(typealias|struct|class|actor|enum|protocol|var|func)\\s+)?",
"beginCaptures": {
"1": {
"name": "storage.modifier.swift"
@ -1908,7 +1908,7 @@
"type": {
"patterns": [
{
"begin": "\\b(class(?!\\s+(?:func|var|let)\\b)|struct)\\s+((?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>))",
"begin": "\\b(class(?!\\s+(?:func|var|let)\\b)|struct|actor)\\s+((?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>))",
"beginCaptures": {
"1": {
"name": "storage.type.$1.swift"
@ -2337,7 +2337,7 @@
],
"repository": {
"availability-condition": {
"begin": "\\B(#available)(\\()",
"begin": "\\B(#(?:un)?available)(\\()",
"beginCaptures": {
"1": {
"name": "support.function.availability-condition.swift"
@ -2645,7 +2645,7 @@
"name": "keyword.other.declaration-specifier.swift"
},
{
"match": "(?<!\\.)\\b(class|enum|extension|precedencegroup|protocol|struct)\\b",
"match": "(?<!\\.)\\b(class|enum|extension|precedencegroup|protocol|struct|actor)\\b",
"name": "storage.type.$1.swift"
},
{

View file

@ -100,13 +100,13 @@
},
{
"c": "%",
"t": "source.batchfile punctuation.definition.variable.batchfile",
"t": "source.batchfile variable.parameter.batchfile punctuation.definition.variable.batchfile",
"r": {
"dark_plus": "default: #D4D4D4",
"light_plus": "default: #000000",
"dark_plus": "variable: #9CDCFE",
"light_plus": "variable: #001080",
"dark_vs": "default: #D4D4D4",
"light_vs": "default: #000000",
"hc_black": "default: #FFFFFF"
"hc_black": "variable: #9CDCFE"
}
},
{