Skip to content

Commit

Permalink
Support backticks in labels (#4352)
Browse files Browse the repository at this point in the history
.NET uses them, it seems. Closes #4350
  • Loading branch information
mattgodbolt committed Nov 27, 2022
1 parent 867d24c commit 90e6e4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/modes/asm-mode.ts
Expand Up @@ -96,8 +96,8 @@ function definition() {
[/(')(@escapes)(')/, ['string', 'string.escape', 'string']],
[/'/, 'string.invalid'],

// Assume anything else is a label reference
[/%?[.?_$a-zA-Z@][.?_$a-zA-Z0-9@]*/, 'type.identifier'],
// Assume anything else is a label reference. .NET uses ` in some identifiers
[/%?[.?_$a-zA-Z@][.?_$a-zA-Z0-9@`]*/, 'type.identifier'],

// whitespace
{include: '@whitespace'},
Expand Down

0 comments on commit 90e6e4e

Please sign in to comment.