Skip to content

Commit

Permalink
WIP run LSP in embedded blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
cleve-fauna committed Feb 5, 2024
1 parent dfd90d2 commit c4238e7
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ node_modules
# Logs
yarn-debug.log*
yarn-error.log*

# Emacs
*~
*#
19 changes: 18 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"Other"
],
"activationEvents": [
"onLanguage:fql"
"onLanguage:fql",
"onLanguage:typescript"
],
"main": "./out/extension.js",
"dependencies": {
Expand Down Expand Up @@ -131,6 +132,22 @@
"language": "fsl",
"scopeName": "source.fsl",
"path": "./syntax/fsl.tmGrammar.json"
},
{
"injectTo": [
"source.js",
"source.jsx",
"source.ts",
"source.tsx",
"text.html.basic",
"text.html.derivative",
"text.html.markdown"
],
"scopeName": "meta.embedded.block.fql",
"path": "./syntax/fql.embedded.js.tmGrammar.json",
"embeddedLanguages": {
"meta.embedded.block.fql": "source.fql"
}
}
],
"keybindings": [
Expand Down
26 changes: 26 additions & 0 deletions syntax/fql.embedded.js.tmGrammar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"scopeName": "meta.embedded.block.fql",
"begin": "(fql)(`)",
"end": "`",
"name": "meta.embedded.block.fql",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.fql"
},
"1": {
"name": "punctuation.definition.string.begin.fql.backtick"
}
},
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.fql"
}
},
"patterns": [
{
"include": "source.fql"
}
]
}


0 comments on commit c4238e7

Please sign in to comment.