Skip to content

Anviking/Chromatism

Repository files navigation

Chromatism

iOS Syntax highlightning using Swift built for performance, but still at a very experimental non-reliable state.

image

Notes

This project is in limbo, and future is unsure. Master branch is targeting an Xcode 8 beta seed, but an old one. Latest stable Swift 2 version should be: a99131349ff292825dde56b885be6aad14ed1718.

New since Swift rewrite:

  • JLNestedToken /* Comment /* Another Comment */ */. Could possible do great stuff with {}-scope-aware-auto-completion. Needs some more work though.
  • Tests – sort of.
  • JLKeywordScope Optimizes regex patterns for keywords. (?:He(?:j(?:san|)|llo))

Todo

  • JLTokenizingScope should keep track of additions/deletions of tokens, and JLNestedScope should be able to use that information. Better performance, JLNestedScope don't have to keep track of both hollow and non-hollow indexes anymore, and enables proper "parantesis-flash-blink-thing-handling" in JLTextView.
  • Make the code and classes more logical
    • How much should JLLanguage and JLDocumentScope be responsable for?
  • Add a symbol-recognicion-scope
  • Add more languages