Files
flux/vscode-flux/language-configuration.json
Jooris Hadeler 0e08640f59 Add VSCode syntax highlighting extension for Flux
Adds the vscode-flux extension with TextMate grammar covering keywords,
types, literals, operators, comments, and function/struct name highlighting.
Supports .flux and .flx file extensions.
2026-03-10 14:42:46 +01:00

46 lines
1.2 KiB
JSON

{
"comments": {
"lineComment": "//",
"blockComment": ["/*", "*/"]
},
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
"autoClosingPairs": [
{ "open": "{", "close": "}" },
{ "open": "[", "close": "]" },
{ "open": "(", "close": ")" },
{ "open": "\"", "close": "\"", "notIn": ["string", "comment"] },
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
{ "open": "/*", "close": " */" }
],
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
],
"onEnterRules": [
{
"beforeText": { "pattern": "^\\s*/\\*\\*(?!/)([^*]|\\*(?!/))*$" },
"action": { "indent": "indentOutdent", "appendText": " * " }
},
{
"beforeText": { "pattern": "^\\s* \\* (?!/).*$" },
"action": { "indent": "none", "appendText": "* " }
},
{
"beforeText": { "pattern": "^\\s* \\*/$" },
"action": { "indent": "none", "removeText": 1 }
}
],
"indentationRules": {
"increaseIndentPattern": { "pattern": "^.*\\{[^}\"']*$" },
"decreaseIndentPattern": { "pattern": "^\\s*\\}" }
},
"wordPattern": { "pattern": "[a-zA-Z_][a-zA-Z0-9_]*" }
}