JSDOC/ScopeParser.vala
authorAlan Knowles <alan@roojs.com>
Fri, 6 Nov 2015 08:41:17 +0000 (16:41 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 6 Nov 2015 08:41:17 +0000 (16:41 +0800)
JSDOC/ScopeParser.vala

index d91ecf0..508b950 100644 (file)
@@ -433,7 +433,8 @@ namespace JSDOC {
                         // remove the quotes..
                         // 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 (/^[a-z_]+$/i.test(str) && ScopeParser.idents.indexOf(str) < 0) {
+                        
+                        if (Regex.match_simple ("^[a-z_]+$", str) && this.idents.index_of(str) < 0) {
                             token.outData = str;
                         }