Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.

Commit ddcd366

Browse files
authored
Merge pull request #14 from thetarnav/number-dot
Escape dot in number pattern
2 parents c040f60 + e47ebe1 commit ddcd366

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Odin.sublime-syntax

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ contexts:
7171
scope: keyword.operator.odin
7272
- match: \b(nil|true|false)\b
7373
scope: constant.language.odin
74-
- match: '\b(\d(\d|_)*(.\d(\d|_)*)?)((e|E)(\+|-)?\d+)?[ijk]?\b'
74+
- match: '\b(\d(\d|_)*(\.\d(\d|_)*)?)((e|E)(\+|-)?\d+)?[ijk]?\b'
7575
scope: constant.numeric.odin
7676
- match: '\b((0b(0|1|_)+)|(0o(\d|_)+)|(0d(\d|_)+)|(0[xXh](\h|_)+))[ijk]?\b'
7777
scope: constant.numeric.odin

Odin.tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@
205205
</dict>
206206
<dict>
207207
<key>match</key>
208-
<string>\b(\d(\d|_)*(.\d(\d|_)*)?)((e|E)(\+|-)?\d+)?[ijk]?\b</string>
208+
<string>\b(\d(\d|_)*(\.\d(\d|_)*)?)((e|E)(\+|-)?\d+)?[ijk]?\b</string>
209209
<key>name</key>
210210
<string>constant.numeric.odin</string>
211211
</dict>

0 commit comments

Comments
 (0)