Skip to content

Commit

Permalink
redefine and undefine support + coloring fixes (#533)
Browse files Browse the repository at this point in the history
  • Loading branch information
Natolumin authored Jul 8, 2024
1 parent f5811ce commit 6e6a51a
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions src/nft.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
}
},
{
"begin": "(define)\\s+([a-zA-Z_\\.][a-zA-Z0-9/\\-_\\.]*)\\s*(=)",
"begin": "(define|redefine)\\s+([a-zA-Z_\\.][a-zA-Z0-9/\\-_\\.]*)\\s*(=)",
"beginCaptures": {
"1": {
"name": "keyword.define.nft"
Expand All @@ -61,6 +61,17 @@
}
],
"end": "(?=;|$)"
},
{
"match": "(undefine)\\s+([a-zA-Z_\\.][a-zA-Z0-9/\\-_\\.]*)",
"captures": {
"1": {
"name": "keyword.undefine.nft"
},
"2": {
"name": "variable.other.define.nft"
}
}
}
]
},
Expand Down Expand Up @@ -663,8 +674,12 @@
}
]
},
"2": "support.function.handle.nft",
"3": "constant.numeric.rulehandle.nft"
"2": {
"name": "support.function.handle.nft"
},
"3": {
"name": "constant.numeric.rulehandle.nft"
}
}
},
"rule_position": {
Expand Down Expand Up @@ -1404,7 +1419,7 @@
"name": "delimiter.prefix.nft"
},
"3": {
"name": "constant.prefixlen.numeric.nft"
"name": "constant.numeric.prefixlen.nft"
}
}
},
Expand Down

0 comments on commit 6e6a51a

Please sign in to comment.