Update jflex to 1.8.2
[scilab.git] / scilab / modules / scinotes / src / java / jflex / function.jflex
index de2bccf..46b1668 100644 (file)
@@ -9,7 +9,6 @@ import javax.swing.text.BadLocationException;
 import javax.swing.text.Element;
 
 @javax.annotation.Generated("JFlex")
-@SuppressWarnings("fallthrough")
 %%
 
 %public
@@ -37,6 +36,10 @@ import javax.swing.text.Element;
        this.matchBlock = new MatchingBlockScanner(doc);
     }
 
+    public int yychar() {
+        return (int) yychar;
+    }
+
     public String getFunctionName() {
         return functionName;
     }
@@ -136,7 +139,7 @@ end = "end"
                                 }
 
   {end}                                 {
-                                  MatchingBlockScanner.MatchingPositions pos = matchBlock.getMatchingBlock(start + yychar + yylength(), false);
+                                  MatchingBlockScanner.MatchingPositions pos = matchBlock.getMatchingBlock(start + yychar() + yylength(), false);
                                   if (pos != null) {
                                      try {
                                         String match = doc.getText(pos.secondB, pos.secondE - pos.secondB);