Force all syntax regex to ends with $

- Lots of syntax regex are poorly written and did not ends with a '$',
   which caused them competing with other regex rules.
This commit is contained in:
davidhcefx 2023-04-12 14:52:10 +08:00 committed by david.hu
parent 92c5ada3c7
commit b5b285fbf9
20 changed files with 20 additions and 20 deletions

View file

@ -1,4 +1,4 @@
syntax "Zig" "\.zig$$"
syntax "Zig" "\.zig$"
color latte "\<(align|allowzero|and|anyframe|anytype|asm|async|await|break|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|noalias|nosuspend|or|orelse|packed|pub|resume|return|linksection|struct|suspend|switch|test|threadlocal|try|union|unreachable|usingnamespace|var|volatile|while)\>"
color brightcyan "@[a-zA-Z]+[0-9]{0,2}"
color cyan "(true|false|null|undefined)"