vertically aligned code comments

This commit is contained in:
りき萌 2025-08-30 13:13:29 +02:00
parent ee0a95974b
commit 408b984266
6 changed files with 83 additions and 12 deletions

View file

@ -1,6 +1,6 @@
{
"patterns": [
{ "regex": "\\/\\/.*", "is": "comment" },
{ "regex": "\\/\\/.*\\n?", "is": "comment" },
{
"regex": "\\/\\*.*?\\*\\/",
"flags": ["dotMatchesNewline"],
@ -37,7 +37,8 @@
}
},
{ "regex": "[a-zA-Z_][a-zA-Z0-9_]*", "is": "identifier" },
{ "regex": "'[a-zA-Z_][a-zA-Z0-9_]*", "is": "literal" }
{ "regex": "'[a-zA-Z_][a-zA-Z0-9_]*", "is": "literal" },
{ "regex": "\n", "is": "" }
],
"keywords": {
"_": { "into": "keyword1" },