Skip to content

Commit

Permalink
add syntax highlighting for rust i128, u128, f16, f128
Browse files Browse the repository at this point in the history
  • Loading branch information
edwloef committed Mar 1, 2025
1 parent 272a308 commit 1ec5468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/syntax/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ rules:
# Traits/Enums/Structs/Types/etc.
- type: "\\b[A-Z]+[a-zA-Z_0-9]*[a-z]+[a-zA-Z_0-9]*\\b"
# Builtin types that start with lowercase.
- type: "\\b(bool|str|isize|usize|((i|u)(8|16|32|64))|f32|f64)\\b"
- type: "\\b(bool|str|char|((i|u)(8|16|32|64|128|size))|f(16|32|64|128))\\b"

- constant.string:
start: "[bc]?\""
Expand Down

0 comments on commit 1ec5468

Please sign in to comment.