Skip to content

Commit 44851bc

Browse files
authored
feat: Add support for new float syntax (#163)
* feat: Add support for new float syntax * chore: Fix match * Update editor-extensions/vscode/syntaxes/grain.json ---------
1 parent 59ccb76 commit 44851bc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

editor-extensions/vscode/syntaxes/grain.json

+9
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,15 @@
852852
}
853853
}
854854
},
855+
{
856+
"match": "\\b(0[xX][\\da-fA-F][\\da-fA-F_]*)(\\.[\\da-fA-F][\\da-fA-F_]*)?([pP][+-]?\\d[\\d_]*)?([fdwW]?)\\b",
857+
"name": "constant.numeric.grain",
858+
"captures": {
859+
"4": {
860+
"name": "entity.name.type.numeric.grain"
861+
}
862+
}
863+
},
855864
{
856865
"match": "\\b(\\d[\\d_]*)(([sSlLnNt]|u[lLsS])?)\\b",
857866
"name": "constant.numeric.grain",

0 commit comments

Comments
 (0)