Skip to content

Commit

Permalink
feat: comment support
Browse files Browse the repository at this point in the history
  • Loading branch information
doinkythederp committed Jun 2, 2022
1 parent caa4a20 commit 0506965
Showing 1 changed file with 15 additions and 31 deletions.
46 changes: 15 additions & 31 deletions syntaxes/nasm.tmLanguage.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,16 @@
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "NASM Assembly",
"patterns": [
{
"include": "#keywords"
},
{
"include": "#strings"
}
],
"repository": {
"keywords": {
"patterns": [{
"name": "keyword.control.nasm",
"match": "\\b(if|while|for|return)\\b"
}]
},
"strings": {
"name": "string.quoted.double.nasm",
"begin": "\"",
"end": "\"",
"patterns": [
{
"name": "constant.character.escape.nasm",
"match": "\\\\."
}
]
}
},
"scopeName": "source.nasm"
}
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "NASM Assembly",
"patterns": [
{
"include": "#comments"
}
],
"repository": {
"comments": {
"name": "comment.line.semicolon",
"match": ";.*"
}
},
"scopeName": "source.nasm"
}

0 comments on commit 0506965

Please sign in to comment.