add binary expression

This commit is contained in:
Asaki Yuki 2026-02-19 14:16:17 +07:00
parent 1d00af88c0
commit 246cdbb8d2
3 changed files with 62 additions and 6 deletions

View file

@ -25,3 +25,7 @@ export function isOctalChar(char: string) {
export function isCompileBinding(input: string) {
return input.startsWith("[") && input.endsWith("]")
}
export function isHasBinding(input: string) {
return /#\w+/.test(input)
}