mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-10-15 09:00:05 +00:00
not global
This commit is contained in:
@@ -50,9 +50,9 @@ function* lex(code: string, config: clikeConf) {
|
||||
const r = regex(config);
|
||||
const keywords = new Set(config.keywords);
|
||||
if (config.firstLineShabang) {
|
||||
const m = code.match(/^#!.*\n?/gm);
|
||||
const m = code.match(/^#!.*\n?/m);
|
||||
if (m) {
|
||||
code = code.replace(/^#!.*\n?/gm, "");
|
||||
code = code.replace(/^#!.*\n?/m, "");
|
||||
yield {
|
||||
type: hcolors.comment,
|
||||
content: m[0],
|
||||
|
||||
Reference in New Issue
Block a user