Skip to content

Commit

Permalink
Add float literals
Browse files Browse the repository at this point in the history
  • Loading branch information
jiribenes committed Jul 19, 2024
1 parent d82dc85 commit 45e1173
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions syntaxes/effekt.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,16 @@
}]
},
"numbers": {
"patterns": [{
"match": "\\b[0-9]+",
"name": "constant.numeric"
}]
"patterns": [
{
"match": "\\b([0-9]+\\.[0-9]+)\\b",
"name": "constant.numeric.float.effekt"
},
{
"match": "\\b([0-9]+)\\b",
"name": "constant.numeric.integer.effekt"
}
]
},
"punctuation": {
"patterns": [{
Expand Down

0 comments on commit 45e1173

Please sign in to comment.