Class: Match

Match

new Match(index, classes, type, length, match, precedence)

Inner class for the matches that have been made
Parameters:
Name Type Description
index number The position that this match was found at in the main text
classes string A string which will be added to the class variable in the span tag, this should also include the type
type string This is the match type, e.g keyword, wrapping
length number This is the length of the match
match string This is the actual contents of the match
precedence number This is the precedence level of the match type
Author:
Source: