add create functions

This commit is contained in:
2023-02-27 00:07:13 +00:00
parent f0620354c0
commit 1b3a4c44d9
23 changed files with 580 additions and 125 deletions

View File

@@ -4,7 +4,7 @@ import (
"strings"
)
var commentCompile = makeRegex(".*//.*")
var commentCompile = makeRegex("(.|\n)*//(.|\n)*")
func isComment(code UNPARSEcode) bool {
return commentCompile.MatchString(code.code)