Includes:
ThemetypeCodableto/fromtmThemeformat- Generate
NSAttributedStringattributes from a givenThemeandScopeorContext
ScopeSelectortypeCodableto/from string formatScopeandContextmatching- Fully compatible with TextMate 2 format
ScopeandContexttypes- A
Scopeis a list of scope names which emulates a TextMate scope (grammar derivation)Codableto/from space-separated scope names string- Direct (
matchAndRemoveFirst) and transient (matchAndRemoveLeading) scope name matching
- A
Contextmodels a text editing selection, and is either- A
Scope(main), or - A pair of
Scopes, one to the left of the text cursor (left) and one to the right (main)
- A
- A
ScopeNametypeCodableto/from dot-separated components string- Prefix matching
For example usage:
- of scopes and scope selectors, please see this package's test files
- of themes and string attribute generation, please see this file