Skip to content

Commit

Permalink
Add support for binary integer literals
Browse files Browse the repository at this point in the history
Closes #266
  • Loading branch information
nicolasstucki committed Feb 16, 2024
1 parent 8019283 commit 0ee961a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/typescript/Scala.tmLanguage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ export const scalaTmLanguage: TmLanguage = {
match: '(\\.[0-9][0-9_]*)([eE](\\+|-)?[0-9][0-9_]*)?[LlFfDd]?\\b',
name: 'constant.numeric.scala'
},
{
match: '\\b0[bB][01]([01_]*[01])?[Ll]?\\b',
name: 'constant.numeric.scala'
},
{
match: '\\b(this|super)\\b',
name: 'variable.language.scala'
Expand Down
Loading

0 comments on commit 0ee961a

Please sign in to comment.