Merge pull request from dneto0/add-wgsl

Avoid a hack in the WGSL lexer
pull/3942/head
Henning Dieterichs committed by GitHub
commit 52d3b7ed6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -377,7 +377,7 @@ export const language = <languages.IMonarchLanguage>{
predeclared_intrinsics, predeclared_intrinsics,
operators, operators,
symbols: /[!%&*+\-\.\/:;<=>^|_~]+/, symbols: /[!%&*+\-\.\/:;<=>^|_~,]+/,
tokenizer: { tokenizer: {
root: [ root: [
@ -402,8 +402,6 @@ export const language = <languages.IMonarchLanguage>{
{ include: '@commentOrSpace' }, { include: '@commentOrSpace' },
{ include: '@numbers' }, { include: '@numbers' },
[/;:\./, 'delimiter'],
[/,/, 'delimiter'], // Hack: Should be in previous rule
[/[{}()\[\]]/, '@brackets'], [/[{}()\[\]]/, '@brackets'],
['@', 'annotation', '@attribute'], ['@', 'annotation', '@attribute'],
[ [

Loading…
Cancel
Save