force unicode 2.0 to reduce static memory footprint

This commit is contained in:
Gregory.Shrago
2016-05-13 19:20:58 +03:00
parent bb178d6978
commit 5e0682be20
23 changed files with 23 additions and 49 deletions
@@ -13,7 +13,7 @@ import java.util.EnumSet;
%class _RegExLexer
%implements FlexLexer
%unicode
%unicode 2.0
%function advance
%type IElementType
@@ -29,7 +29,7 @@ import com.intellij.lexer.FlexLexer;
}
%}
%unicode
%unicode 2.0
%class _SPILexer
%implements FlexLexer
%function advance
@@ -31,11 +31,9 @@ import com.intellij.psi.tree.IElementType;
%class _JavaDocLexer
%implements FlexLexer
%unicode
%unicode 2.0
%function advance
%type IElementType
%eof{ return;
%eof}
%state COMMENT_DATA_START
%state COMMENT_DATA
@@ -40,7 +40,7 @@ import com.intellij.lexer.FlexLexer;
}
%}
%unicode
%unicode 2.0
%class _JavaLexer
%implements FlexLexer
%function advance
+1 -1
View File
@@ -16,7 +16,7 @@ import static com.intellij.json.JsonElementTypes.*;
%implements FlexLexer
%function advance
%type IElementType
%unicode
%unicode 2.0
EOL="\r"|"\n"|"\r\n"
LINE_WS=[\ \t\f]
@@ -12,13 +12,11 @@ import com.intellij.psi.tree.IElementType;
}
%}
%unicode
%unicode 2.0
%class _TemplateTextLexer
%implements FlexLexer
%function advance
%type IElementType
%eof{ return;
%eof}
ALPHA=[A-Za-z_]
DIGIT=[0-9]
@@ -13,7 +13,7 @@ import com.intellij.lexer.FlexLexer;
}
%}
%unicode
%unicode 2.0
%class _MacroLexer
%implements FlexLexer
%function advance
@@ -12,13 +12,11 @@ import com.intellij.psi.tree.IElementType;
}
%}
%unicode
%unicode 2.0
%class _FileTemplateTextLexer
%implements FlexLexer
%function advance
%type IElementType
%eof{ return;
%eof}
ALPHA=[A-Za-z_]
DIGIT=[0-9]
@@ -11,7 +11,7 @@ import com.intellij.lexer.FlexLexer;
}
%}
%unicode
%unicode 2.0
%class _ScopesLexer
%implements FlexLexer
%function advance
@@ -23,15 +23,12 @@ import com.intellij.psi.tree.IElementType;
%class _GroovyDocLexer
%implements FlexLexer
%unicode
%unicode 2.0
%public
%function advance
%type IElementType
%eof{ return;
%eof}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////// User code //////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -25,15 +25,12 @@ import org.jetbrains.plugins.groovy.lang.groovydoc.parser.GroovyDocElementTypes;
%class _GroovyLexer
%implements FlexLexer
%unicode
%unicode 2.0
%public
%function advance
%type IElementType
%eof{ return;
%eof}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////// User code //////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -7,7 +7,7 @@ import com.intellij.psi.tree.IElementType;
%class _PropertiesLexer
%implements FlexLexer
%unicode
%unicode 2.0
%function advance
%type IElementType
@@ -7,12 +7,10 @@ import com.intellij.psi.tree.IElementType;
%class _JqlLexer
%implements FlexLexer
%unicode
%unicode 2.0
%function advance
%type IElementType
%ignorecase
%eof{ return;
%eof}
WHITESPACE_CHAR = [\ \t]
DIGIT = [0-9]
@@ -10,7 +10,7 @@ import com.intellij.psi.tree.IElementType;
%class _XPathLexer
%abstract
%implements FlexLexer
%unicode
%unicode 2.0
%function advance
%type IElementType
@@ -9,15 +9,12 @@ import org.jetbrains.yaml.YAMLTokenTypes;
%class _YAMLLexer
%implements FlexLexer, YAMLTokenTypes
%unicode
%unicode 2.0
%public
%function advance
%type IElementType
%eof{ return;
%eof}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////// USER CODE //////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -16,7 +16,7 @@ import static com.jetbrains.commandInterface.commandLine.CommandLineElementTypes
%implements FlexLexer
%function advance
%type IElementType
%unicode
%unicode 2.0
EOL="\r"|"\n"|"\r\n"
LINE_WS=[\ \t\f]
@@ -9,7 +9,7 @@ import com.jetbrains.rest.RestTokenTypes;
%class _RestFlexLexer
%implements FlexLexer, RestTokenTypes
%unicode
%unicode 2.0
%public
%ignorecase
%function advance
@@ -9,17 +9,12 @@ import com.jetbrains.python.buildout.config.BuildoutCfgTokenTypes;
%class _BuildoutCfgFlexLexer
%implements FlexLexer, BuildoutCfgTokenTypes
%unicode
%unicode 2.0
%public
%function advance
%type IElementType
%eof{ return;
%eof}
CRLF= \n|\r|\r\n
SPACE=[\ \t]
NOTSPACE=[^\ \t]
@@ -10,11 +10,9 @@ import com.intellij.openapi.util.text.StringUtil;
%class _PythonLexer
%implements FlexLexer
%unicode
%unicode 2.0
%function advance
%type IElementType
%eof{ return;
%eof}
DIGIT = [0-9]
NONZERODIGIT = [1-9]
@@ -10,7 +10,7 @@ import static com.jetbrains.python.psi.types.PyTypeTokenTypes.*;
%class _PyTypeLexer
%implements FlexLexer
%unicode
%unicode 2.0
%public
%function advance
@@ -16,14 +16,12 @@ import com.intellij.psi.xml.*;
}
%}
%unicode
%unicode 2.0
%class _DtdLexer
%public
%implements FlexLexer
%function advance
%type IElementType
%eof{ return;
%eof}
%state DECL
%state DECL_ATTR
@@ -7,7 +7,7 @@ import com.intellij.psi.xml.*;
%%
%unicode
%unicode 2.0
%{
public _HtmlLexer() {
@@ -43,7 +43,7 @@ import com.intellij.psi.xml.*;
}
%}
%unicode
%unicode 2.0
%class __XmlLexer
%public
%implements FlexLexer