Update jflex to 1.8.2
[scilab.git] / scilab / modules / scinotes / src / java / jflex / indentation.jflex
index d99972c..387de9c 100644 (file)
@@ -7,7 +7,6 @@ import javax.swing.text.Element;
 import javax.swing.text.BadLocationException;
 
 @javax.annotation.Generated("JFlex")
-@SuppressWarnings("fallthrough")
 %% 
 
 %public
@@ -17,8 +16,6 @@ import javax.swing.text.BadLocationException;
 %char
 %type int
 
-%switch
-
 %{
     private ScilabDocument doc;
     private Element elem;
@@ -119,14 +116,14 @@ string = (([^\'\"\r\n]*)|([\'\"]{2}))+
 qstring = (\"|\'){string}(\"|\')
 transp = ({spec} | ")" | "]" | "}") "'"
 
-indentP = ("function" | "if" | "for" | "while" | "try" | "select")
+indentP = ("function" | "if" | "for" | "while" | "try" | "select" | "switch")
 indentPx = {indentP}{spec}+
 xindentP = {spec}{indentP}
 
 indentM = ("endfunction" | "end")
 indentMx = {indentM}{spec}+
 xindentM = {spec}{indentM}
-indentMP = ("else" | "elseif" | "catch" | "case")
+indentMP = ("else" | "elseif" | "catch" | "case" | "otherwise")
 indentMPx = {indentMP}{spec}+
 xindentMP = {spec}{indentMP}
 
@@ -193,4 +190,4 @@ xindentMP = {spec}{indentMP}
 
   .                             |
   {eol}                                 { }
-}
\ No newline at end of file
+}