Class NsisFoldParser
- java.lang.Object
-
- org.fife.ui.rsyntaxtextarea.folding.NsisFoldParser
-
- All Implemented Interfaces:
FoldParser
public class NsisFoldParser extends java.lang.Object implements FoldParser
A fold parser NSIS.Note that this class may impose somewhat of a performance penalty on large source files, since it reparses the entire document each time folds are reevaluated.
- Version:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description protected static char[]C_MLC_ENDprivate static char[]KEYWORD_FUNCTIONprivate static char[]KEYWORD_FUNCTION_ENDprivate static char[]KEYWORD_SECTIONprivate static char[]KEYWORD_SECTION_END
-
Constructor Summary
Constructors Constructor Description NsisFoldParser()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static booleanfoundEndKeyword(char[] keyword, Token t, java.util.Stack<char[]> endWordStack)java.util.List<Fold>getFolds(RSyntaxTextArea textArea)Returns a list of all folds in the text area.
-
-
-
Field Detail
-
KEYWORD_FUNCTION
private static final char[] KEYWORD_FUNCTION
-
KEYWORD_FUNCTION_END
private static final char[] KEYWORD_FUNCTION_END
-
KEYWORD_SECTION
private static final char[] KEYWORD_SECTION
-
KEYWORD_SECTION_END
private static final char[] KEYWORD_SECTION_END
-
C_MLC_END
protected static final char[] C_MLC_END
-
-
Method Detail
-
foundEndKeyword
private static boolean foundEndKeyword(char[] keyword, Token t, java.util.Stack<char[]> endWordStack)
-
getFolds
public java.util.List<Fold> getFolds(RSyntaxTextArea textArea)
Description copied from interface:FoldParserReturns a list of all folds in the text area.- Specified by:
getFoldsin interfaceFoldParser- Parameters:
textArea- The text area whose contents should be analyzed.- Returns:
- The list of folds. If this method returns
null, it is treated as if no folds were found.
-
-