@@ -178,6 +178,45 @@ class RegionKey(StrEnum):
178
178
DocumentHighlightKind .Write : "region.yellowish markup.highlight.write.lsp"
179
179
}
180
180
181
+ # These are the "exceptional" base scopes. If a base scope is not in this map, nor the first two components or more
182
+ # match any of the entries here, then the rule is that we split the base scope on the ".", and take the second
183
+ # component. The resulting string is assumed to be the language ID. The official list is maintained at
184
+ # https://microsoft.github.io/language-server-protocol/specification#textDocumentItem
185
+ LANGUAGE_IDENTIFIERS = {
186
+ "source.c++" : "cpp" ,
187
+ "source.coffee" : "coffeescript" ,
188
+ "source.cs" : "csharp" ,
189
+ "source.dosbatch" : "bat" ,
190
+ "source.fixedform-fortran" : "fortran" , # https://packagecontrol.io/packages/Fortran
191
+ "source.js" : "javascript" ,
192
+ "source.js.react" : "javascriptreact" , # https://github.com/Thom1729/Sublime-JS-Custom
193
+ "source.json-tmlanguage" : "jsonc" , # https://github.com/SublimeText/PackageDev
194
+ "source.json.sublime" : "jsonc" , # https://github.com/SublimeText/PackageDev
195
+ "source.jsx" : "javascriptreact" ,
196
+ "source.Kotlin" : "kotlin" , # https://github.com/vkostyukov/kotlin-sublime-package
197
+ "source.modern-fortran" : "fortran" , # https://packagecontrol.io/packages/Fortran
198
+ "source.objc" : "objective-c" ,
199
+ "source.objc++" : "objective-cpp" ,
200
+ "source.shader" : "shaderlab" , # https://github.com/waqiju/unity_shader_st3
201
+ "source.shell" : "shellscript" ,
202
+ "source.ts" : "typescript" ,
203
+ "source.ts.react" : "typescriptreact" , # https://github.com/Thom1729/Sublime-JS-Custom
204
+ "source.tsx" : "typescriptreact" ,
205
+ "source.unity.unity_shader" : "shaderlab" , # https://github.com/petereichinger/Unity3D-Shader
206
+ "source.yaml-tmlanguage" : "yaml" , # https://github.com/SublimeText/PackageDev
207
+ "text.advanced_csv" : "csv" , # https://github.com/SublimeText/AFileIcon
208
+ "text.django" : "html" , # https://github.com/willstott101/django-sublime-syntax
209
+ "text.html.handlebars" : "handlebars" ,
210
+ "text.html.markdown" : "markdown" ,
211
+ "text.html.markdown.rmarkdown" : "r" , # https://github.com/REditorSupport/sublime-ide-r
212
+ "text.html.vue" : "vue" ,
213
+ "text.jinja" : "html" , # https://github.com/Sublime-Instincts/BetterJinja
214
+ "text.plain" : "plaintext" ,
215
+ "text.plist" : "xml" , # https://bitbucket.org/fschwehn/sublime_plist
216
+ "text.tex.latex" : "latex" ,
217
+ "text.xml.xsl" : "xsl" ,
218
+ }
219
+
181
220
SEMANTIC_TOKENS_MAP = {
182
221
"namespace" : "variable.other.namespace.lsp" ,
183
222
"namespace.declaration" : "entity.name.namespace.lsp" ,
0 commit comments