forked from mirror/misskey
✌️
This commit is contained in:
parent
76e2892949
commit
a74f12dc98
@ -40,6 +40,7 @@ const keywords = [
|
|||||||
'then',
|
'then',
|
||||||
'else',
|
'else',
|
||||||
'switch',
|
'switch',
|
||||||
|
'match',
|
||||||
'case',
|
'case',
|
||||||
'for',
|
'for',
|
||||||
'each',
|
'each',
|
||||||
@ -291,7 +292,7 @@ const elements = [
|
|||||||
const prev = source[i - 1];
|
const prev = source[i - 1];
|
||||||
if (prev != '.') return null;
|
if (prev != '.') return null;
|
||||||
|
|
||||||
const match = code.match(/^[a-zA-Z_-]+/);
|
const match = code.match(/^[a-zA-Z0-9_-]+/);
|
||||||
if (!match) return null;
|
if (!match) return null;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user