@codingame/monaco-languageclient-wrapper 1.4.2 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BSV.tmLanguage.js +299 -0
- package/dist/COBOL Copybook.js +2017 -0
- package/dist/COBOL.js +2017 -0
- package/dist/COBOL.tmLanguage.js +149 -0
- package/dist/CodinGameMonacoWorkspace.d.ts +13 -0
- package/dist/Configuration.d.ts +15 -0
- package/dist/Erlang.plist.js +1752 -0
- package/dist/JSON.tmLanguage.js +221 -0
- package/dist/JSONC.tmLanguage.js +221 -0
- package/dist/JavaScript.tmLanguage.js +5894 -0
- package/dist/Kotlin.tmLanguage.js +724 -0
- package/dist/MagicPython.tmLanguage.js +5340 -0
- package/dist/MagicRegExp.tmLanguage.js +505 -0
- package/dist/Regular Expressions (JavaScript).tmLanguage.js +166 -0
- package/dist/SQL.plist.js +482 -0
- package/dist/Scala.tmLanguage.js +1255 -0
- package/dist/TypeScript.tmLanguage.js +5641 -0
- package/dist/WatchableConsoleWindow.d.ts +22 -0
- package/dist/_rollupPluginBabelHelpers.js +54 -0
- package/dist/asp-vb-net.tmlanguage.js +247 -0
- package/dist/bsv.js +49 -0
- package/dist/c.js +18 -0
- package/dist/c.tmLanguage.js +3347 -0
- package/dist/cabal.tmLanguage.js +66 -0
- package/dist/clojure.tmLanguage.js +443 -0
- package/dist/codeblock-cabal.js +42 -0
- package/dist/codeblock-haskell.js +42 -0
- package/dist/codeblock-literate-haskell.js +42 -0
- package/dist/codeblock.js +36 -0
- package/dist/codeblock2.js +95 -0
- package/dist/coffeescript.js +18 -0
- package/dist/coffeescript.tmLanguage.js +1324 -0
- package/dist/configuration/index.d.ts +5 -0
- package/dist/cpp.js +18 -0
- package/dist/cpp.tmLanguage.js +19996 -0
- package/dist/createLanguageClient.d.ts +3 -3
- package/dist/csharp.js +18 -0
- package/dist/csharp.tmLanguage.js +4750 -0
- package/dist/css.tmLanguage.js +1873 -0
- package/dist/css.worker.js +6 -0
- package/dist/cssContribution.js +10 -0
- package/dist/cuda-cpp.tmLanguage.js +19993 -0
- package/dist/d.js +3159 -0
- package/dist/dart.js +530 -0
- package/dist/diet.js +758 -0
- package/dist/diet2.js +92 -0
- package/dist/dml.js +169 -0
- package/dist/eex.js +55 -0
- package/dist/elixir.js +2341 -0
- package/dist/elixir2.js +184 -0
- package/dist/erlang.js +195 -0
- package/dist/expression.js +846 -0
- package/dist/extensionConfiguration.d.ts +1 -1
- package/dist/extensions/autofold.d.ts +2 -0
- package/dist/extensions/cobol.d.ts +2 -0
- package/dist/extensions/index.d.ts +2 -0
- package/dist/features/cssContribution.d.ts +1 -0
- package/dist/features/htmlContribution.d.ts +1 -0
- package/dist/features/jsonContribution.d.ts +1 -0
- package/dist/features/typescriptContribution.d.ts +1 -0
- package/dist/fsharp.js +18 -0
- package/dist/fsharp.tmLanguage.js +1811 -0
- package/dist/go.tmLanguage.js +1025 -0
- package/dist/groovy.js +229 -0
- package/dist/groovy.tmLanguage.js +1391 -0
- package/dist/haskell.tmLanguage.js +629 -0
- package/dist/html (eex).js +31 -0
- package/dist/html-derivative.tmLanguage.js +57 -0
- package/dist/html.tmLanguage.js +2652 -0
- package/dist/html.tmLanguage2.js +97 -0
- package/dist/html.worker.js +6 -0
- package/dist/htmlContribution.js +10 -0
- package/dist/index.d.ts +4 -3
- package/dist/inline-styles.js +104 -0
- package/dist/inline-template.js +88 -0
- package/dist/java.js +18 -0
- package/dist/java.tmLanguage.js +1863 -0
- package/dist/javascript.js +196 -0
- package/dist/javascriptreact.js +196 -0
- package/dist/jsdoc.js.injection.tmLanguage.js +32 -0
- package/dist/jsdoc.ts.injection.tmLanguage.js +32 -0
- package/dist/json.worker.js +6 -0
- package/dist/jsonContribution.js +78 -0
- package/dist/keybindings/index.d.ts +2 -0
- package/dist/keybindings/keybindingHelper.d.ts +2 -0
- package/dist/keybindings/vim.d.ts +3 -0
- package/dist/kotlin.js +117 -0
- package/dist/kotlinscript.js +117 -0
- package/dist/languageClient.d.ts +4 -7
- package/dist/languageClientOptions.d.ts +9 -0
- package/dist/languages/extensions/grammarLoader.d.ts +91037 -0
- package/dist/languages/extensions/snippetLoader.d.ts +4578 -0
- package/dist/languages/index.d.ts +3 -0
- package/dist/languages/monarch/index.d.ts +7 -0
- package/dist/languages/monarch/list.d.ts +7 -0
- package/dist/languages/monarch/stub-generator.d.ts +2 -0
- package/dist/languages/snippets/index.d.ts +1 -0
- package/dist/languages/textMate/CGTMGrammarFactory.d.ts +5 -0
- package/dist/languages/textMate/TextMateTokensProvider.d.ts +11 -0
- package/dist/languages/textMate/index.d.ts +2 -0
- package/dist/literateHaskell.tmLanguage.js +70 -0
- package/dist/lua.tmLanguage.js +289 -0
- package/dist/main.js +619 -761
- package/dist/markdown.js +103 -0
- package/dist/markdown.tmLanguage.js +2784 -0
- package/dist/merlin.js +111 -0
- package/dist/monaco.d.ts +8 -0
- package/dist/objective-c.tmLanguage.js +3618 -0
- package/dist/ocaml-hover-info.js +34 -0
- package/dist/ocaml-hover-type.js +24 -0
- package/dist/ocaml-markdown-codeblock.js +42 -0
- package/dist/ocaml.js +2979 -0
- package/dist/ocamlbuild.js +239 -0
- package/dist/opam.js +149 -0
- package/dist/pascal.js +382 -0
- package/dist/pascal.tmLanguage.js +169 -0
- package/dist/perl.tmLanguage.js +2986 -0
- package/dist/perl6.tmLanguage.js +323 -0
- package/dist/pgsql.tmLanguage.js +284 -0
- package/dist/php.js +265 -0
- package/dist/php.tmLanguage.js +3791 -0
- package/dist/platform.tmLanguage.js +1135 -0
- package/dist/powershell.js +18 -0
- package/dist/powershell.tmLanguage.js +1037 -0
- package/dist/r.tmLanguage.js +551 -0
- package/dist/reason-hover-info.js +34 -0
- package/dist/reason-hover-signature.js +21 -0
- package/dist/reason-hover-type.js +21 -0
- package/dist/reason-markdown-codeblock.js +42 -0
- package/dist/reason.js +100 -0
- package/dist/ruby.tmLanguage.js +2784 -0
- package/dist/rust.tmLanguage.js +1178 -0
- package/dist/sassdoc.tmLanguage.js +362 -0
- package/dist/scss.tmLanguage.js +1887 -0
- package/dist/sdc.tmLanguage.js +712 -0
- package/dist/sdl.js +162 -0
- package/dist/services/EditorModelResolverService.d.ts +8 -0
- package/dist/services/MultiEditorStandaloneCodeEditorService.d.ts +7 -0
- package/dist/shell-unix-bash.tmLanguage.js +1291 -0
- package/dist/sql.js +21 -0
- package/dist/staticOptions.d.ts +4 -8
- package/dist/stub-generator.js +15 -0
- package/dist/swift.js +183 -0
- package/dist/swift.tmLanguage.js +3288 -0
- package/dist/systemverilog.js +208 -0
- package/dist/systemverilog.tmLanguage.js +1067 -0
- package/dist/tcl.js +151 -0
- package/dist/tcl.tmlanguage.yaml.js +5484 -0
- package/dist/template.js +207 -0
- package/dist/theme/index.d.ts +3 -0
- package/dist/theme/registry.d.ts +4 -0
- package/dist/theme/semanticHighlight.d.ts +1 -0
- package/dist/theme/tools.d.ts +13 -0
- package/dist/tools.d.ts +3 -0
- package/dist/ts.worker.js +6 -0
- package/dist/typescript.js +312 -0
- package/dist/typescriptContribution.js +36 -0
- package/dist/typescriptreact.js +312 -0
- package/dist/ucf.tmLanguage.js +36 -0
- package/dist/vb.js +88 -0
- package/dist/verilog.js +432 -0
- package/dist/verilog.tmLanguage.js +321 -0
- package/dist/worker.d.ts +6 -0
- package/dist/worker.js +54 -0
- package/dist/xml.tmLanguage.js +395 -0
- package/dist/xsl.tmLanguage.js +102 -0
- package/dist/yaml.tmLanguage.js +629 -0
- package/package.json +17 -14
- package/stats.html +1 -1
- package/dist/monaco-languageclient-wrapper.d.ts +0 -1478
- package/dist/tsdoc-metadata.json +0 -11
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
var information_for_contributors = [
|
|
2
|
+
"This file has been converted from https://github.com/microsoft/vscode/blob/master/extensions/perl/",
|
|
3
|
+
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
|
4
|
+
"Once accepted there, we are happy to receive an update request."
|
|
5
|
+
];
|
|
6
|
+
var version = "https://github.com/textmate/perl.tmbundle/commit/d9841a0878239fa43f88c640f8d458590f97e8f5";
|
|
7
|
+
var name = "Perl 6";
|
|
8
|
+
var scopeName = "source.perl.6";
|
|
9
|
+
var patterns = [
|
|
10
|
+
{
|
|
11
|
+
begin: "^=begin",
|
|
12
|
+
end: "^=end",
|
|
13
|
+
name: "comment.block.perl"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
begin: "(^[ \\t]+)?(?=#)",
|
|
17
|
+
beginCaptures: {
|
|
18
|
+
"1": {
|
|
19
|
+
name: "punctuation.whitespace.comment.leading.perl"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
end: "(?!\\G)",
|
|
23
|
+
patterns: [
|
|
24
|
+
{
|
|
25
|
+
begin: "#",
|
|
26
|
+
beginCaptures: {
|
|
27
|
+
"0": {
|
|
28
|
+
name: "punctuation.definition.comment.perl"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
end: "\\n",
|
|
32
|
+
name: "comment.line.number-sign.perl"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
captures: {
|
|
38
|
+
"1": {
|
|
39
|
+
name: "storage.type.class.perl.6"
|
|
40
|
+
},
|
|
41
|
+
"3": {
|
|
42
|
+
name: "entity.name.type.class.perl.6"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
match: "(class|enum|grammar|knowhow|module|package|role|slang|subset)(\\s+)(((?:::|')?(?:([a-zA-Z_\\x{C0}-\\x{FF}\\$])([a-zA-Z0-9_\\x{C0}-\\x{FF}\\\\$]|[\\-'][a-zA-Z0-9_\\x{C0}-\\x{FF}\\$])*))+)",
|
|
46
|
+
name: "meta.class.perl.6"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
begin: "(?<=\\s)'",
|
|
50
|
+
beginCaptures: {
|
|
51
|
+
"0": {
|
|
52
|
+
name: "punctuation.definition.string.begin.perl"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
end: "'",
|
|
56
|
+
endCaptures: {
|
|
57
|
+
"0": {
|
|
58
|
+
name: "punctuation.definition.string.end.perl"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
name: "string.quoted.single.perl",
|
|
62
|
+
patterns: [
|
|
63
|
+
{
|
|
64
|
+
match: "\\\\['\\\\]",
|
|
65
|
+
name: "constant.character.escape.perl"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
begin: "\"",
|
|
71
|
+
beginCaptures: {
|
|
72
|
+
"0": {
|
|
73
|
+
name: "punctuation.definition.string.begin.perl"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
end: "\"",
|
|
77
|
+
endCaptures: {
|
|
78
|
+
"0": {
|
|
79
|
+
name: "punctuation.definition.string.end.perl"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
name: "string.quoted.double.perl",
|
|
83
|
+
patterns: [
|
|
84
|
+
{
|
|
85
|
+
match: "\\\\[abtnfre\"\\\\]",
|
|
86
|
+
name: "constant.character.escape.perl"
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
begin: "q(q|to|heredoc)*\\s*:?(q|to|heredoc)*\\s*/(.+)/",
|
|
92
|
+
end: "\\3",
|
|
93
|
+
name: "string.quoted.single.heredoc.perl"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
begin: "(q|Q)(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*:?(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*{{",
|
|
97
|
+
end: "}}",
|
|
98
|
+
name: "string.quoted.double.heredoc.brace.perl",
|
|
99
|
+
patterns: [
|
|
100
|
+
{
|
|
101
|
+
include: "#qq_brace_string_content"
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
begin: "(q|Q)(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*:?(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*\\(\\(",
|
|
107
|
+
end: "\\)\\)",
|
|
108
|
+
name: "string.quoted.double.heredoc.paren.perl",
|
|
109
|
+
patterns: [
|
|
110
|
+
{
|
|
111
|
+
include: "#qq_paren_string_content"
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
begin: "(q|Q)(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*:?(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*\\[\\[",
|
|
117
|
+
end: "\\]\\]",
|
|
118
|
+
name: "string.quoted.double.heredoc.bracket.perl",
|
|
119
|
+
patterns: [
|
|
120
|
+
{
|
|
121
|
+
include: "#qq_bracket_string_content"
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
begin: "(q|Q)(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*:?(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*{",
|
|
127
|
+
end: "}",
|
|
128
|
+
name: "string.quoted.single.heredoc.brace.perl",
|
|
129
|
+
patterns: [
|
|
130
|
+
{
|
|
131
|
+
include: "#qq_brace_string_content"
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
begin: "(q|Q)(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*:?(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*/",
|
|
137
|
+
end: "/",
|
|
138
|
+
name: "string.quoted.single.heredoc.slash.perl",
|
|
139
|
+
patterns: [
|
|
140
|
+
{
|
|
141
|
+
include: "#qq_slash_string_content"
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
begin: "(q|Q)(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*:?(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*\\(",
|
|
147
|
+
end: "\\)",
|
|
148
|
+
name: "string.quoted.single.heredoc.paren.perl",
|
|
149
|
+
patterns: [
|
|
150
|
+
{
|
|
151
|
+
include: "#qq_paren_string_content"
|
|
152
|
+
}
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
begin: "(q|Q)(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*:?(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*\\[",
|
|
157
|
+
end: "\\]",
|
|
158
|
+
name: "string.quoted.single.heredoc.bracket.perl",
|
|
159
|
+
patterns: [
|
|
160
|
+
{
|
|
161
|
+
include: "#qq_bracket_string_content"
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
begin: "(q|Q)(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*:?(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*'",
|
|
167
|
+
end: "'",
|
|
168
|
+
name: "string.quoted.single.heredoc.single.perl",
|
|
169
|
+
patterns: [
|
|
170
|
+
{
|
|
171
|
+
include: "#qq_single_string_content"
|
|
172
|
+
}
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
begin: "(q|Q)(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*:?(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*\"",
|
|
177
|
+
end: "\"",
|
|
178
|
+
name: "string.quoted.single.heredoc.double.perl",
|
|
179
|
+
patterns: [
|
|
180
|
+
{
|
|
181
|
+
include: "#qq_double_string_content"
|
|
182
|
+
}
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
match: "\\b\\$\\w+\\b",
|
|
187
|
+
name: "variable.other.perl"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
match: "\\b(macro|sub|submethod|method|multi|proto|only|rule|token|regex|category)\\b",
|
|
191
|
+
name: "storage.type.declare.routine.perl"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
match: "\\b(self)\\b",
|
|
195
|
+
name: "variable.language.perl"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
match: "\\b(use|require)\\b",
|
|
199
|
+
name: "keyword.other.include.perl"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
match: "\\b(if|else|elsif|unless)\\b",
|
|
203
|
+
name: "keyword.control.conditional.perl"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
match: "\\b(let|my|our|state|temp|has|constant)\\b",
|
|
207
|
+
name: "storage.type.variable.perl"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
match: "\\b(for|loop|repeat|while|until|gather|given)\\b",
|
|
211
|
+
name: "keyword.control.repeat.perl"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
match: "\\b(take|do|when|next|last|redo|return|contend|maybe|defer|default|exit|make|continue|break|goto|leave|async|lift)\\b",
|
|
215
|
+
name: "keyword.control.flowcontrol.perl"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
match: "\\b(is|as|but|trusts|of|returns|handles|where|augment|supersede)\\b",
|
|
219
|
+
name: "storage.modifier.type.constraints.perl"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
match: "\\b(BEGIN|CHECK|INIT|START|FIRST|ENTER|LEAVE|KEEP|UNDO|NEXT|LAST|PRE|POST|END|CATCH|CONTROL|TEMP)\\b",
|
|
223
|
+
name: "meta.function.perl"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
match: "\\b(die|fail|try|warn)\\b",
|
|
227
|
+
name: "keyword.control.control-handlers.perl"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
match: "\\b(prec|irs|ofs|ors|export|deep|binary|unary|reparsed|rw|parsed|cached|readonly|defequiv|will|ref|copy|inline|tighter|looser|equiv|assoc|required)\\b",
|
|
231
|
+
name: "storage.modifier.perl"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
match: "\\b(NaN|Inf)\\b",
|
|
235
|
+
name: "constant.numeric.perl"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
match: "\\b(oo|fatal)\\b",
|
|
239
|
+
name: "keyword.other.pragma.perl"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
match: "\\b(Object|Any|Junction|Whatever|Capture|MatchSignature|Proxy|Matcher|Package|Module|ClassGrammar|Scalar|Array|Hash|KeyHash|KeySet|KeyBagPair|List|Seq|Range|Set|Bag|Mapping|Void|UndefFailure|Exception|Code|Block|Routine|Sub|MacroMethod|Submethod|Regex|Str|str|Blob|Char|ByteCodepoint|Grapheme|StrPos|StrLen|Version|NumComplex|num|complex|Bit|bit|bool|True|FalseIncreasing|Decreasing|Ordered|Callable|AnyCharPositional|Associative|Ordering|KeyExtractorComparator|OrderingPair|IO|KitchenSink|RoleInt|int|int1|int2|int4|int8|int16|int32|int64Rat|rat|rat1|rat2|rat4|rat8|rat16|rat32|rat64Buf|buf|buf1|buf2|buf4|buf8|buf16|buf32|buf64UInt|uint|uint1|uint2|uint4|uint8|uint16|uint32uint64|Abstraction|utf8|utf16|utf32)\\b",
|
|
243
|
+
name: "support.type.perl6"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
match: "\\b(div|xx|x|mod|also|leg|cmp|before|after|eq|ne|le|lt|not|gt|ge|eqv|ff|fff|and|andthen|or|xor|orelse|extra|lcm|gcd)\\b",
|
|
247
|
+
name: "keyword.operator.perl"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
match: "(\\$|@|%|&)(\\*|:|!|\\^|~|=|\\?|(<(?=.+>)))?([a-zA-Z_\\x{C0}-\\x{FF}\\$])([a-zA-Z0-9_\\x{C0}-\\x{FF}\\$]|[\\-'][a-zA-Z0-9_\\x{C0}-\\x{FF}\\$])*",
|
|
251
|
+
name: "variable.other.identifier.perl.6"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
match: "\\b(eager|hyper|substr|index|rindex|grep|map|sort|join|lines|hints|chmod|split|reduce|min|max|reverse|truncate|zip|cat|roundrobin|classify|first|sum|keys|values|pairs|defined|delete|exists|elems|end|kv|any|all|one|wrap|shape|key|value|name|pop|push|shift|splice|unshift|floor|ceiling|abs|exp|log|log10|rand|sign|sqrt|sin|cos|tan|round|strand|roots|cis|unpolar|polar|atan2|pick|chop|p5chop|chomp|p5chomp|lc|lcfirst|uc|ucfirst|capitalize|normalize|pack|unpack|quotemeta|comb|samecase|sameaccent|chars|nfd|nfc|nfkd|nfkc|printf|sprintf|caller|evalfile|run|runinstead|nothing|want|bless|chr|ord|gmtime|time|eof|localtime|gethost|getpw|chroot|getlogin|getpeername|kill|fork|wait|perl|graphs|codes|bytes|clone|print|open|read|write|readline|say|seek|close|opendir|readdir|slurp|spurt|shell|run|pos|fmt|vec|link|unlink|symlink|uniq|pair|asin|atan|sec|cosec|cotan|asec|acosec|acotan|sinh|cosh|tanh|asinh|done|acos|acosh|atanh|sech|cosech|cotanh|sech|acosech|acotanh|asech|ok|nok|plan_ok|dies_ok|lives_ok|skip|todo|pass|flunk|force_todo|use_ok|isa_ok|diag|is_deeply|isnt|like|skip_rest|unlike|cmp_ok|eval_dies_ok|nok_error|eval_lives_ok|approx|is_approx|throws_ok|version_lt|plan|EVAL|succ|pred|times|nonce|once|signature|new|connect|operator|undef|undefine|sleep|from|to|infix|postfix|prefix|circumfix|postcircumfix|minmax|lazy|count|unwrap|getc|pi|e|context|void|quasi|body|each|contains|rewinddir|subst|can|isa|flush|arity|assuming|rewind|callwith|callsame|nextwith|nextsame|attr|eval_elsewhere|none|srand|trim|trim_start|trim_end|lastcall|WHAT|WHERE|HOW|WHICH|VAR|WHO|WHENCE|ACCEPTS|REJECTS|not|true|iterator|by|re|im|invert|flip|gist|flat|tree|is-prime|throws_like|trans)\\b",
|
|
255
|
+
name: "support.function.perl"
|
|
256
|
+
}
|
|
257
|
+
];
|
|
258
|
+
var repository = {
|
|
259
|
+
qq_brace_string_content: {
|
|
260
|
+
begin: "{",
|
|
261
|
+
end: "}",
|
|
262
|
+
patterns: [
|
|
263
|
+
{
|
|
264
|
+
include: "#qq_brace_string_content"
|
|
265
|
+
}
|
|
266
|
+
]
|
|
267
|
+
},
|
|
268
|
+
qq_bracket_string_content: {
|
|
269
|
+
begin: "\\[",
|
|
270
|
+
end: "\\]",
|
|
271
|
+
patterns: [
|
|
272
|
+
{
|
|
273
|
+
include: "#qq_bracket_string_content"
|
|
274
|
+
}
|
|
275
|
+
]
|
|
276
|
+
},
|
|
277
|
+
qq_double_string_content: {
|
|
278
|
+
begin: "\"",
|
|
279
|
+
end: "\"",
|
|
280
|
+
patterns: [
|
|
281
|
+
{
|
|
282
|
+
include: "#qq_double_string_content"
|
|
283
|
+
}
|
|
284
|
+
]
|
|
285
|
+
},
|
|
286
|
+
qq_paren_string_content: {
|
|
287
|
+
begin: "\\(",
|
|
288
|
+
end: "\\)",
|
|
289
|
+
patterns: [
|
|
290
|
+
{
|
|
291
|
+
include: "#qq_paren_string_content"
|
|
292
|
+
}
|
|
293
|
+
]
|
|
294
|
+
},
|
|
295
|
+
qq_single_string_content: {
|
|
296
|
+
begin: "'",
|
|
297
|
+
end: "'",
|
|
298
|
+
patterns: [
|
|
299
|
+
{
|
|
300
|
+
include: "#qq_single_string_content"
|
|
301
|
+
}
|
|
302
|
+
]
|
|
303
|
+
},
|
|
304
|
+
qq_slash_string_content: {
|
|
305
|
+
begin: "\\\\/",
|
|
306
|
+
end: "\\\\/",
|
|
307
|
+
patterns: [
|
|
308
|
+
{
|
|
309
|
+
include: "#qq_slash_string_content"
|
|
310
|
+
}
|
|
311
|
+
]
|
|
312
|
+
}
|
|
313
|
+
};
|
|
314
|
+
var perl6_tmLanguage = {
|
|
315
|
+
information_for_contributors: information_for_contributors,
|
|
316
|
+
version: version,
|
|
317
|
+
name: name,
|
|
318
|
+
scopeName: scopeName,
|
|
319
|
+
patterns: patterns,
|
|
320
|
+
repository: repository
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
export { perl6_tmLanguage as default, information_for_contributors, name, patterns, repository, scopeName, version };
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
var fileTypes = [
|
|
2
|
+
"pgsql",
|
|
3
|
+
"psql"
|
|
4
|
+
];
|
|
5
|
+
var foldingStartMarker = "\\s*\\(\\s*$";
|
|
6
|
+
var foldingStopMarker = "^\\s*\\)";
|
|
7
|
+
var name = "SQL (PostgreSQL)";
|
|
8
|
+
var patterns = [
|
|
9
|
+
{
|
|
10
|
+
include: "#comments"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
begin: "(?i)^\\s*(create)\\s+(or\\s+replace\\s+)?(function|view)\\s+((?:(?:[\\w]+|\".+\")\\.)?(?:[\\w]+|\".+\"))",
|
|
14
|
+
beginCaptures: {
|
|
15
|
+
"1": {
|
|
16
|
+
name: "keyword.other.create.pgsql"
|
|
17
|
+
},
|
|
18
|
+
"2": {
|
|
19
|
+
name: "keyword.other.pgsql"
|
|
20
|
+
},
|
|
21
|
+
"3": {
|
|
22
|
+
name: "keyword.other.pgsql"
|
|
23
|
+
},
|
|
24
|
+
"4": {
|
|
25
|
+
name: "entity.name.function.pgsql"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
end: ";\\s*",
|
|
29
|
+
name: "meta.statement.pgsql.create",
|
|
30
|
+
patterns: [
|
|
31
|
+
{
|
|
32
|
+
include: "#dollar_quotes"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
include: "#comments"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
include: "#strings"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
include: "#keywords"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
include: "#misc"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
begin: "(?i:^\\s*(create)\\s+(aggregate|collation|conversion|database|domain|event trigger|group|(?:unique\\s+)?index|language|operator class|operator|rule|schema|sequence|(?:global\\s+|local\\s+)?(?:temp\\s+|temporary\\s+|unlogged\\s+)?table|tablespace|trigger|type|user|(?:materialized\\s+)?view)\\s+)(if\\s+not\\s+exists\\s+)?((?:(?:[\\w]+|\".+\")\\.)?(?:[\\w]+|\".+\"))",
|
|
50
|
+
beginCaptures: {
|
|
51
|
+
"1": {
|
|
52
|
+
name: "keyword.other.create.pgsql"
|
|
53
|
+
},
|
|
54
|
+
"2": {
|
|
55
|
+
name: "keyword.other.pgsql"
|
|
56
|
+
},
|
|
57
|
+
"3": {
|
|
58
|
+
name: "keyword.other.pgsql"
|
|
59
|
+
},
|
|
60
|
+
"4": {
|
|
61
|
+
name: "entity.name.function.pgsql"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
end: ";\\s*",
|
|
65
|
+
name: "meta.statement.pgsql.create",
|
|
66
|
+
patterns: [
|
|
67
|
+
{
|
|
68
|
+
include: "#dollar_quotes"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
include: "#comments"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
include: "#strings"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
include: "#keywords"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
include: "#misc"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
begin: "(^\\s*[a-zA-Z]+)",
|
|
86
|
+
beginCaptures: {
|
|
87
|
+
"0": {
|
|
88
|
+
name: "keyword.other.pgsql"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
comment: "Last update (including keywords below) using postgres 9.3. See classes/Help.php for update method. Testing change below to just assume starting word is a SQL keyword.",
|
|
92
|
+
end: ";\\s*",
|
|
93
|
+
name: "meta.statement.pgsql",
|
|
94
|
+
patterns: [
|
|
95
|
+
{
|
|
96
|
+
include: "#dollar_quotes"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
include: "#comments"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
include: "#strings"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
include: "#keywords"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
include: "#misc"
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
begin: "^(\\\\[\\S]+)",
|
|
114
|
+
beginCaptures: {
|
|
115
|
+
"0": {
|
|
116
|
+
name: "meta.preprocessor.pgsql"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
comment: "psql directives",
|
|
120
|
+
end: "\\n",
|
|
121
|
+
name: "meta.statement.pgsql.psql"
|
|
122
|
+
}
|
|
123
|
+
];
|
|
124
|
+
var repository = {
|
|
125
|
+
comments: {
|
|
126
|
+
patterns: [
|
|
127
|
+
{
|
|
128
|
+
captures: {
|
|
129
|
+
"1": {
|
|
130
|
+
name: "punctuation.definition.comment.pgsql"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
match: "(--).*$\\n?",
|
|
134
|
+
name: "comment.line.double-dash.pgsql"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
begin: "/\\*",
|
|
138
|
+
captures: {
|
|
139
|
+
"0": {
|
|
140
|
+
name: "punctuation.definition.comment.pgsql"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
end: "\\*/",
|
|
144
|
+
name: "comment.block.c"
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
dollar_quotes: {
|
|
149
|
+
patterns: [
|
|
150
|
+
{
|
|
151
|
+
begin: "(\\$[\\w_0-9]*\\$)$",
|
|
152
|
+
comment: "Assume multiline dollar quote is SQL; start if quote is at the end of the line.\n\t\t This could easily support other PL languages like PHP and Ruby -- see PHP heredoc as an example.",
|
|
153
|
+
end: "\\1",
|
|
154
|
+
name: "meta.dollar-quote.pgsql",
|
|
155
|
+
patterns: [
|
|
156
|
+
{
|
|
157
|
+
include: "#dollar_quotes"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
include: "#comments"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
include: "#strings"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
include: "#keywords"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
include: "#misc"
|
|
170
|
+
}
|
|
171
|
+
]
|
|
172
|
+
}
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
keywords: {
|
|
176
|
+
patterns: [
|
|
177
|
+
{
|
|
178
|
+
captures: {
|
|
179
|
+
"1": {
|
|
180
|
+
name: "keyword.other.pgsql"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
match: "(?xi)\\b(abort|absolute|access|action|add|admin|after|aggregate|all|also|alter|always|analyse|analyze|and|any|array|as|asc|assertion|assignment|asymmetric|at|attribute|authorization|backward|before|begin|between|bigint|binary|bit|boolean|both|by|cache|called|cascade|cascaded|case|cast|catalog|chain|char|character|characteristics|check|checkpoint|class|close|cluster|coalesce|collate|collation|column|comment|comments|commit|committed|concurrently|configuration|connection|constraint|constraints|content|continue|conversion|copy|cost|create|cross|csv|current|current_catalog|current_date|current_role|current_schema|current_time|current_timestamp|current_user|cursor|cycle|data|database|day|deallocate|dec|decimal|declare|default|defaults|deferrable|deferred|definer|delete|delimiter|delimiters|desc|dictionary|disable|discard|distinct|do|document|domain|double|drop|each|else|enable|encoding|encrypted|end|enum|escape|event|except|exclude|excluding|exclusive|execute|exists|explain|extension|external|extract|false|family|fetch|first|float|following|for|force|foreign|forward|freeze|from|full|function|functions|global|grant|granted|greatest|group|handler|having|header|hold|hour|identity|if|ilike|immediate|immutable|implicit|in|including|increment|index|indexes|inherit|inherits|initially|inline|inner|inout|input|insensitive|insert|instead|int|integer|intersect|interval|into|invoker|is|isnull|isolation|join|key|label|language|large|last|lateral|lc_collate|lc_ctype|leading|leakproof|least|left|level|like|limit|listen|load|local|localtime|localtimestamp|location|lock|mapping|match|materialized|maxvalue|minute|minvalue|mode|month|move|name|names|national|natural|nchar|next|no|none|not|nothing|notify|notnull|nowait|null|nullif|nulls|numeric|object|of|off|offset|oids|on|only|operator|option|options|or|order|out|outer|over|overlaps|overlay|owned|owner|parser|partial|partition|passing|password|placing|plans|position|preceding|precision|prepare|prepared|preserve|primary|prior|privileges|procedural|procedure|program|quote|range|read|real|reassign|recheck|recursive|ref|references|refresh|reindex|relative|release|rename|repeatable|replace|replica|reset|restart|restrict|returning|returns|revoke|right|role|rollback|row|rows|rule|savepoint|schema|scroll|search|second|security|select|sequence|sequences|serializable|server|session|session_user|set|setof|share|show|similar|simple|smallint|snapshot|some|stable|standalone|start|statement|statistics|stdin|stdout|storage|strict|strip|substring|symmetric|sysid|system|table|tables|tablespace|temp|template|temporary|text|then|time|timestamp|to|trailing|transaction|treat|trigger|trim|true|truncate|trusted|type|types|unbounded|uncommitted|unencrypted|union|unique|unknown|unlisten|unlogged|until|update|user|using|vacuum|valid|validate|validator|value|values|varchar|variadic|varying|verbose|version|view|volatile|when|where|whitespace|window|with|without|work|wrapper|write|xml|xmlattributes|xmlconcat|xmlelement|xmlexists|xmlforest|xmlparse|xmlpi|xmlroot|xmlserialize|year|yes|zone)\\b"
|
|
184
|
+
}
|
|
185
|
+
]
|
|
186
|
+
},
|
|
187
|
+
misc: {
|
|
188
|
+
patterns: [
|
|
189
|
+
{
|
|
190
|
+
match: "\\b\\d+\\b",
|
|
191
|
+
name: "constant.numeric.pgsql"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
match: "\\*",
|
|
195
|
+
name: "keyword.operator.star.pgsql"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
match: "[!<>]?=|<>|<|>",
|
|
199
|
+
name: "keyword.operator.comparison.pgsql"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
match: "-|\\+|/",
|
|
203
|
+
name: "keyword.operator.math.pgsql"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
match: "\\|\\|",
|
|
207
|
+
name: "keyword.operator.concatenator.pgsql"
|
|
208
|
+
}
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
string_escape: {
|
|
212
|
+
match: "\\\\.",
|
|
213
|
+
name: "constant.character.escape.pgsql"
|
|
214
|
+
},
|
|
215
|
+
strings: {
|
|
216
|
+
patterns: [
|
|
217
|
+
{
|
|
218
|
+
captures: {
|
|
219
|
+
"1": {
|
|
220
|
+
name: "punctuation.definition.string.begin.pgsql"
|
|
221
|
+
},
|
|
222
|
+
"3": {
|
|
223
|
+
name: "punctuation.definition.string.end.pgsql"
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
comment: "This is faster than the next begin/end rule since sub-pattern will match till end-of-line and SQL files tend to have very long lines.",
|
|
227
|
+
match: "(')[^'\\\\]*(')",
|
|
228
|
+
name: "string.quoted.single.pgsql"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
begin: "'",
|
|
232
|
+
beginCaptures: {
|
|
233
|
+
"0": {
|
|
234
|
+
name: "punctuation.definition.string.begin.pgsql"
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
comment: "Need to implement escape rule with two single quotes in a row. Lots of other escaping issues with single quotes.",
|
|
238
|
+
end: "'",
|
|
239
|
+
endCaptures: {
|
|
240
|
+
"0": {
|
|
241
|
+
name: "punctuation.definition.string.end.pgsql"
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
name: "string.quoted.single.pgsql",
|
|
245
|
+
patterns: [
|
|
246
|
+
{
|
|
247
|
+
include: "#string_escape"
|
|
248
|
+
}
|
|
249
|
+
]
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
comment: "Double quoting treated like strings, but they are really identifiers.",
|
|
253
|
+
match: "(\")[^\"#]*(\")",
|
|
254
|
+
name: "variable.other.pgsql"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
begin: "(\\$[\\w_0-9]*\\$)",
|
|
258
|
+
comment: "Color as a string if dollar quote did not start at the end of a line.",
|
|
259
|
+
end: "\\1",
|
|
260
|
+
name: "string.unquoted.dollar.pgsql"
|
|
261
|
+
}
|
|
262
|
+
]
|
|
263
|
+
}
|
|
264
|
+
};
|
|
265
|
+
var scopeName = "source.pgsql";
|
|
266
|
+
var uuid = "4D6B679D-111C-4529-B558-3F25487D9E27";
|
|
267
|
+
var information_for_contributors = [
|
|
268
|
+
"This file has been converted from https://github.com/Borvik/vscode-postgres/blob/master/",
|
|
269
|
+
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
|
270
|
+
"Once accepted there, we are happy to receive an update request."
|
|
271
|
+
];
|
|
272
|
+
var pgsql_tmLanguage = {
|
|
273
|
+
fileTypes: fileTypes,
|
|
274
|
+
foldingStartMarker: foldingStartMarker,
|
|
275
|
+
foldingStopMarker: foldingStopMarker,
|
|
276
|
+
name: name,
|
|
277
|
+
patterns: patterns,
|
|
278
|
+
repository: repository,
|
|
279
|
+
scopeName: scopeName,
|
|
280
|
+
uuid: uuid,
|
|
281
|
+
information_for_contributors: information_for_contributors
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
export { pgsql_tmLanguage as default, fileTypes, foldingStartMarker, foldingStopMarker, information_for_contributors, name, patterns, repository, scopeName, uuid };
|