Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Factor out generic token-navigation routines from HTMLUtils #1753

Merged
merged 1 commit into from
Oct 3, 2012

Conversation

njx
Copy link
Contributor

@njx njx commented Oct 3, 2012

HTMLUtils had a number of private functions that navigate through the CodeMirror code coloring tokens in the current editor. These are completely generic (not specific to HTML), and would be useful for extensions that need to do light parsing based on the tokenization. This pull request factors those functions out into a separate TokenUtils class.

@ghost ghost assigned peterflynn Oct 3, 2012
@njx
Copy link
Contributor Author

njx commented Oct 3, 2012

@peterflynn

@peterflynn
Copy link
Member

Cool. Eventually I think we should have a TokenIterator sort of class that packages this up even more cleanly (and probably hides _codeMirror a bit better too), and this seems like a solid step in that direction.

Diff looks good to me -- merging.

peterflynn added a commit that referenced this pull request Oct 3, 2012
Factor out generic token-navigation routines from HTMLUtils
@peterflynn peterflynn merged commit 04bcf56 into master Oct 3, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants