Skip to content
Discussion options

You must be logged in to vote

Sorry but I don't follow this case, if the index is just a number you'll have the number highlighted, if the index is being acceded via a user-defined variable, you won't have enough context to highlight anything useful.

I'll leave a pattern for matching what you are asking but I'm not following:

{ { "%[([%a_][%w_]*)%]" }, { "operator", "keyword2", "keyword2" } }

Please try to dedicate some time in understanding pattern matching otherwise it isn't very useful if you implement new languages without understanding what you're actually doing, because you won't be able to solve any highlighting problem in the languages implemented, which is one of the things that can take time.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
4 replies
@Curculigo
Comment options

@SpartanJ
Comment options

Answer selected by Curculigo
@Curculigo
Comment options

@SpartanJ
Comment options

Comment options

You must be logged in to vote
3 replies
@SpartanJ
Comment options

@Curculigo
Comment options

@Curculigo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants