Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complete regex highlighting: start, end, skip, content, specials #3

Open
lukewilson2002 opened this issue Apr 17, 2021 · 0 comments
Open
Labels
feature New feature or request pkg/buffer Relates to the buffer package
Milestone

Comments

@lukewilson2002
Copy link
Owner

The regex highlighting system is not yet complete. I only added the support for single line matches. Multiline matches like multiline comments and strings need to be implemented by handling the End case of the RegexpRegion struct. Also, implement handling the Skip, Content, and Specials fields as well, for added control when matching strings and the like.

For example, matching a multiline string with control sequences (without highlighting the control sequences):

RegexpRegion:
  Start: "\"",
  End: "\"", // match to end of quotation
  Skip: "\\[tvrnb]", // other escape sequences elided
  Content: "[characters][numbers]", // Everything not a string
@lukewilson2002 lukewilson2002 added feature New feature or request pkg/buffer Relates to the buffer package labels Apr 17, 2021
@lukewilson2002 lukewilson2002 added this to the 1.0 milestone Apr 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request pkg/buffer Relates to the buffer package
Projects
None yet
Development

No branches or pull requests

1 participant