包含
Theme
类型Codable
与 tmTheme
格式之间的互相转换Theme
和 Scope
或 Context
生成 NSAttributedString
属性ScopeSelector
类型Codable
与字符串格式之间的互相转换Scope
和 Context
匹配Scope
和 Context
类型Scope
是作用域名称的列表,模拟 TextMate 作用域(语法派生)Codable
与空格分隔的作用域名称字符串之间的互相转换matchAndRemoveFirst
) 和传递 (matchAndRemoveLeading
) 作用域名称匹配Context
模拟文本编辑选择,可以是Scope
(main
),或者Scope
,一个位于文本光标的左侧 (left
),另一个位于右侧 (main
)ScopeName
类型Codable
与点分隔的组件字符串之间的互相转换有关作用域和作用域选择器的使用示例