// should do a bit more checking!!!! (what about wierd char's in the string..
var str = token.data.substring(1,token.data.length-1);
- if (Regex.match_simple ("^[a-z_]+$", str) && this.idents.index_of(str) < 0) {
+ if (Regex.match_simple ("^[a-z_]+$", str,GLib.RegexCompileFlags.CASELESS) && this.idents.index_of(str) < 0) {
token.outData = str;
}
if (this.mode == ScopeParserMode.BUILDING_SYMBOL_TREE) {
if (token.name == "EVAL") {
+
+ Regex.match_simple ("s[ai]mple", "This is a simple sample.",GLib.RegexCompileFlags.CASELESS);
+ var regex = new GLib.Regex ("eval:var:([a-z_]+)",GLib.RegexCompileFlags.CASELESS );
+
+ regex.replace_eval (token.prefix, token.prefix.length, 0, 0, (match_info, result) => {
+
+
//print(JSON.stringify(token,null,4));
- if (token.prefix && token.prefix.match(/eval:var:/g)) {
+
+ if (token.prefix.length > 0 && token.prefix.match(/eval:var:/g)) {
// look for eval:var:noreplace\n
// print("GOT MATCH?");
var _t = this;