Skip to content

Commit 1561350

Browse files
Merge pull request #267 from nicolasstucki/implement-266
Add support for binary integer literals
2 parents 8019283 + 61e8f76 commit 1561350

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

src/typescript/Scala.tmLanguage.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,10 @@ export const scalaTmLanguage: TmLanguage = {
237237
match: '(\\.[0-9][0-9_]*)([eE](\\+|-)?[0-9][0-9_]*)?[LlFfDd]?\\b',
238238
name: 'constant.numeric.scala'
239239
},
240+
{
241+
match: '\\b0[bB][01]([01_]*[01])?[Ll]?\\b',
242+
name: 'constant.numeric.scala'
243+
},
240244
{
241245
match: '\\b(this|super)\\b',
242246
name: 'variable.language.scala'

0 commit comments

Comments
 (0)