mirror of
https://github.com/SuspiciousActivity/ByteEdit.git
synced 2026-08-13 17:56:17 +00:00
Added code folding and formatted all files
This commit is contained in:
1 parent
11570d6b95
commit
66cd1dbd3e
233 files changed
+82245
-118134
No files matched your search
@@ -1,19 +1,17 @@
|
||||
/*
|
||||
* 11/07/2004
|
||||
*
|
||||
* AbstractTokenMaker.java - An abstract implementation of TokenMaker.
|
||||
*
|
||||
* This library is distributed under a modified BSD license. See the included
|
||||
* This library is distributed under a modified BSD license. See the included
|
||||
* RSyntaxTextArea.License.txt file for details.
|
||||
*/
|
||||
package org.fife.ui.rsyntaxtextarea;
|
||||
|
||||
|
||||
/**
|
||||
* An abstract implementation of the
|
||||
* {@link org.fife.ui.rsyntaxtextarea.TokenMaker} interface. It should
|
||||
* {@link org.fife.ui.rsyntaxtextarea.TokenMaker} interface. It should
|
||||
* be overridden for every language for which you want to provide
|
||||
* syntax highlighting.<p>
|
||||
* syntax highlighting.
|
||||
* <p>
|
||||
*
|
||||
* @see Token
|
||||
*
|
||||
@@ -21,7 +19,7 @@ package org.fife.ui.rsyntaxtextarea;
|
||||
* @version 0.2
|
||||
*/
|
||||
public abstract class AbstractTokenMaker extends TokenMakerBase {
|
||||
|
||||
|
||||
/**
|
||||
* Hash table of words to highlight and what token type they are.
|
||||
* The keys are the words to highlight, and their values are the
|
||||
@@ -29,16 +27,14 @@ public abstract class AbstractTokenMaker extends TokenMakerBase {
|
||||
* <code>Token.FUNCTION</code>.
|
||||
*/
|
||||
protected TokenMap wordsToHighlight;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*/
|
||||
public AbstractTokenMaker() {
|
||||
wordsToHighlight = getWordsToHighlight();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Returns the words to highlight for this programming language.
|
||||
*
|
||||
@@ -46,22 +42,18 @@ public abstract class AbstractTokenMaker extends TokenMakerBase {
|
||||
* this programming language.
|
||||
*/
|
||||
public abstract TokenMap getWordsToHighlight();
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Removes the token last added from the linked list of tokens. The
|
||||
* Removes the token last added from the linked list of tokens. The
|
||||
* programmer should never have to call this directly; it can be called
|
||||
* by subclasses of <code>TokenMaker</code> if necessary.
|
||||
*/
|
||||
public void removeLastToken() {
|
||||
if (previousToken==null) {
|
||||
if (previousToken == null) {
|
||||
firstToken = currentToken = null;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
currentToken = previousToken;
|
||||
currentToken.setNextToken(null);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user