void/extensions/less/language-configuration.json

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

114 lines
1.4 KiB
JSON
Raw Permalink Normal View History

2024-09-11 02:37:36 +00:00
{
"comments": {
2025-03-01 02:01:53 +00:00
"blockComment": [
"/*",
"*/"
],
2024-09-11 02:37:36 +00:00
"lineComment": "//"
},
"brackets": [
2025-03-01 02:01:53 +00:00
[
"{",
"}"
],
[
"[",
"]"
],
[
"(",
")"
]
2024-09-11 02:37:36 +00:00
],
"autoClosingPairs": [
2025-03-01 02:01:53 +00:00
{
"open": "{",
"close": "}",
"notIn": [
"string",
"comment"
]
},
{
"open": "[",
"close": "]",
"notIn": [
"string",
"comment"
]
},
{
"open": "(",
"close": ")",
"notIn": [
"string",
"comment"
]
},
{
"open": "\"",
"close": "\"",
"notIn": [
"string",
"comment"
]
},
{
"open": "'",
"close": "'",
"notIn": [
"string",
"comment"
]
}
2024-09-11 02:37:36 +00:00
],
"surroundingPairs": [
2025-03-01 02:01:53 +00:00
[
"{",
"}"
],
[
"[",
"]"
],
[
"(",
")"
],
[
"\"",
"\""
],
[
"'",
"'"
]
2024-09-11 02:37:36 +00:00
],
"folding": {
"markers": {
"start": "^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/",
"end": "^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/"
}
},
"indentationRules": {
"increaseIndentPattern": "(^.*\\{[^}]*$)",
"decreaseIndentPattern": "^\\s*\\}"
},
2025-03-01 02:01:53 +00:00
"wordPattern": "(#?-?\\d*\\.\\d\\w*%?)|(::?[\\w-]+(?=[^,{;]*[,{]))|(([@#.!])?[\\w-?]+%?|[@#!.])",
"onEnterRules": [
// Add // when pressing enter from inside line comment
{
"beforeText": {
"pattern": "\/\/.*"
},
"afterText": {
"pattern": "^(?!\\s*$).+"
},
"action": {
"indent": "none",
"appendText": "// "
}
},
]
2024-09-11 02:37:36 +00:00
}