Skip to content

Commit

Permalink
syntax hightlighting: capture output chords
Browse files Browse the repository at this point in the history
  • Loading branch information
rszyma committed Feb 5, 2024
1 parent c582923 commit 5875f00
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions syntaxes/kanata.tmLanguage.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "kanata",
"scopeName": "source.kanata",
"foldingStartMarker": "\\(",
"foldingStopMarker": "\\)",
"patterns": [
Expand Down Expand Up @@ -109,6 +110,15 @@
}
}
},
{
"_description": "output chords",
"match": "((?:(?:C|A|S|M|RA|AG)-)+[\\S()]+)",
"captures": {
"1": {
"name": "constant.other.output-chord.kanata"
}
}
},
{
"begin": "\"",
"beginCaptures": {
Expand Down Expand Up @@ -155,6 +165,5 @@
}
]
}
},
"scopeName": "source.kanata"
}
}

0 comments on commit 5875f00

Please sign in to comment.