mirror of
https://github.com/Microsoft/vscode
synced 2024-10-05 19:02:54 +00:00
[sql] switch to Microsoft/sql grammar (fixes #36853)
This commit is contained in:
parent
0b0b8ebdd8
commit
e9d793eb33
|
@ -54,7 +54,7 @@ const extensions = [
|
|||
'scss',
|
||||
'shaderlab',
|
||||
'shellscript',
|
||||
// 'sql', customized, PRs pending
|
||||
'sql',
|
||||
'swift',
|
||||
'typescript',
|
||||
'vb',
|
||||
|
|
|
@ -1,23 +1,8 @@
|
|||
// ATTENTION - THIS DIRECTORY CONTAINS THIRD PARTY OPEN SOURCE MATERIALS:
|
||||
|
||||
[{
|
||||
"name": "textmate/sql.tmbundle",
|
||||
"name": "Microsoft/vscode-mssql",
|
||||
"version": "0.0.0",
|
||||
"license": "TextMate Bundle License",
|
||||
"repositoryURL": "https://github.com/textmate/sql.tmbundle",
|
||||
"licenseDetail": [
|
||||
"Copyright (c) textmate-sql.tmbundle project authors",
|
||||
"",
|
||||
"If not otherwise specified (see below), files in this folder fall under the following license: ",
|
||||
"",
|
||||
"Permission to copy, use, modify, sell and distribute this",
|
||||
"software is granted. This software is provided \"as is\" without",
|
||||
"express or implied warranty, and with no claim as to its",
|
||||
"suitability for any purpose.",
|
||||
"",
|
||||
"An exception is made for files in readable text which contain their own license information, ",
|
||||
"or files where an accompanying file exists (in the same directory) with a \"-license\" suffix added ",
|
||||
"to the base-name name of the original file, and an extension of txt, html, or similar. For example ",
|
||||
"\"tidy\" is accompanied by \"tidy-license.txt\"."
|
||||
]
|
||||
"license": "MIT",
|
||||
"repositoryURL": "https://github.com/Microsoft/vscode-mssql"
|
||||
}]
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
"version": "0.1.0",
|
||||
"publisher": "vscode",
|
||||
"engines": { "vscode": "*" },
|
||||
"scripts": {
|
||||
"update-grammar": "node ../../build/npm/update-grammar.js Microsoft/vscode-mssql syntaxes/SQL.plist ./syntaxes/sql.tmLanguage.json"
|
||||
},
|
||||
"contributes": {
|
||||
"languages": [{
|
||||
"id": "sql",
|
||||
|
@ -13,7 +16,7 @@
|
|||
"grammars": [{
|
||||
"language": "sql",
|
||||
"scopeName": "source.sql",
|
||||
"path": "./syntaxes/SQL.plist"
|
||||
"path": "./syntaxes/sql.tmLanguage.json"
|
||||
}]
|
||||
}
|
||||
}
|
472
extensions/sql/syntaxes/sql.tmLanguage.json
Normal file
472
extensions/sql/syntaxes/sql.tmLanguage.json
Normal file
File diff suppressed because one or more lines are too long
|
@ -1,7 +1,7 @@
|
|||
[
|
||||
{
|
||||
"c": "CREATE",
|
||||
"t": "source.sql meta.create.sql keyword.other.create.sql",
|
||||
"t": "source.sql keyword.other.sql",
|
||||
"r": {
|
||||
"dark_plus": "keyword: #569CD6",
|
||||
"light_plus": "keyword: #0000FF",
|
||||
|
@ -11,51 +11,7 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"c": " ",
|
||||
"t": "source.sql meta.create.sql",
|
||||
"r": {
|
||||
"dark_plus": "default: #D4D4D4",
|
||||
"light_plus": "default: #000000",
|
||||
"dark_vs": "default: #D4D4D4",
|
||||
"light_vs": "default: #000000",
|
||||
"hc_black": "default: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "VIEW",
|
||||
"t": "source.sql meta.create.sql keyword.other.sql",
|
||||
"r": {
|
||||
"dark_plus": "keyword: #569CD6",
|
||||
"light_plus": "keyword: #0000FF",
|
||||
"dark_vs": "keyword: #569CD6",
|
||||
"light_vs": "keyword: #0000FF",
|
||||
"hc_black": "keyword: #569CD6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": " ",
|
||||
"t": "source.sql meta.create.sql",
|
||||
"r": {
|
||||
"dark_plus": "default: #D4D4D4",
|
||||
"light_plus": "default: #000000",
|
||||
"dark_vs": "default: #D4D4D4",
|
||||
"light_vs": "default: #000000",
|
||||
"hc_black": "default: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "METRIC_STATS",
|
||||
"t": "source.sql meta.create.sql entity.name.function.sql",
|
||||
"r": {
|
||||
"dark_plus": "entity.name.function: #DCDCAA",
|
||||
"light_plus": "entity.name.function: #795E26",
|
||||
"dark_vs": "default: #D4D4D4",
|
||||
"light_vs": "default: #000000",
|
||||
"hc_black": "entity.name.function: #DCDCAA"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": " (ID, MONTH, TEMP_C, RAIN_C) ",
|
||||
"c": " VIEW METRIC_STATS (ID, MONTH, TEMP_C, RAIN_C) ",
|
||||
"t": "source.sql",
|
||||
"r": {
|
||||
"dark_plus": "default: #D4D4D4",
|
||||
|
|
Loading…
Reference in a new issue