Warning: session_start(): open(/var/lib/php/sessions/sess_9lbll8s2lacfji930a1lrm02i2, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
please include class RSyntaxTextArea.
import org.fife.ui.rsyntaxtextarea.TokenMakerBase;
sclass HashRefTokenMaker extends TokenMakerBase {
delegate Token to org.fife.ui.rsyntaxtextarea.
/**
* Returns a list of tokens representing the given text.
*
* @param text The text to break into tokens.
* @param startTokenType The token with which to start tokenizing.
* @param startOffset The offset at which the line of tokens begins.
* @return A linked list of tokens representing text.
*/
@Override
public Token getTokenList(Segment text, int startTokenType, final int startOffset) {
resetTokenList();
char[] array = text.array;
int offset = text.offset;
int count = text.count;
int end = offset + count;
int newStartOffset = startOffset - offset;
S src = str(array, offset, count);
LS tok = hashRefTok(src);
int ofs = offset;
for i, t over tok: {
if (empty(t)) continue;
int l = l(t);
var tokenType = Token.NULL; // ??
bool isHyperlink = odd(i);
addToken(array, ofs, ofs+l, tokenType, ofs+newStartOffset, isHyperlink);
ofs += l;
}
addNullToken();
// Return the first token in our linked list.
ret firstToken;
}
}