Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/treetrek.git

Updates JavaScript language

Author Dave Jarvis <email>
Date 2026-02-15 13:00:54 GMT-0800
Commit f2b8a6846eb32775ff18bf775324cd2fe425506c
Parent 04ef6ed
render/LanguageDefinitions.php
'string' => '/("(?:\\\\.|[^"\\\\])*"|\'(?:\\\\.|[^\'\\\\])*\'|`(?:\\\\.|[^`\\\\])*`)/s',
'comment' => '/(\/\/[^\r\n]*|\/\*.*?\*\/)/ms',
- 'keyword' => '/\b(?:async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|if|import|in|instanceof|let|new|of|return|static|super|switch|this|throw|try|typeof|var|void|while|with|yield)\b/',
+ 'keyword' => '/\b(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|if|import|in|instanceof|let|new|of|return|static|super|switch|this|throw|try|typeof|var|void|while|with|yield)\b/',
'boolean' => '/\b(?:true|false|null|undefined)\b/',
'function' => '/\b([a-zA-Z_$][a-zA-Z0-9_$]*)\s*(?=\()/',
Delta 1 line added, 1 line removed