java - RSyntaxTextArea Custom Language JFlex -


i'm trying use jflex add custom language highlighting rsyntaxtextarea. however, moment type character index out of bounds exception:

http://pastie.org/private/ygjyj4y5nludeu3dn1xug

this occurs if use example jflex code provided here: https://github.com/bobbylight/rsyntaxtextarea/wiki/adding-syntax-highlighting-for-a-new-language

i'm not sure causing this. point me in right direction?

i'm not quite sure why works, appear have fixed problem copying part of yylex method pythontokenmaker.java java class created jflex.

specifically, copied , replaced section of code: http://pastie.org/private/whjzfhbrzwm8qc88t1idq

it defintion of method line comment // store cached position

hopefully stuck on same problem!


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -