pub struct TexLanguage {
pub version: TexVersion,
pub math_mode: bool,
pub packages: bool,
pub custom_commands: bool,
pub strict: bool,
}Expand description
TeX 语言配置
Fields§
§version: TexVersionTeX 版本
math_mode: bool是否支持数学模式
packages: bool是否支持扩展包
custom_commands: bool是否支持自定义命令
strict: bool是否启用严格模式
Implementations§
Source§impl TexLanguage
impl TexLanguage
Trait Implementations§
Source§impl Default for TexLanguage
impl Default for TexLanguage
Source§impl Language for TexLanguage
impl Language for TexLanguage
Source§type SyntaxKind = TexSyntaxKind
type SyntaxKind = TexSyntaxKind
The kind kind type used to represent different kind and node types in the language. Read more
Source§impl<'config> Lexer<TexLanguage> for TexLexer<'config>
impl<'config> Lexer<TexLanguage> for TexLexer<'config>
Source§fn lex_incremental(
&self,
source: impl Source,
changed: usize,
cache: IncrementalCache<'_, TexLanguage>,
) -> LexOutput<TexLanguage>
fn lex_incremental( &self, source: impl Source, changed: usize, cache: IncrementalCache<'_, TexLanguage>, ) -> LexOutput<TexLanguage>
Tokenizes source text using an existing cache for incremental parsing. Read more
Source§fn lex(
&self,
source: impl Source,
) -> OakDiagnostics<Vec<Token<<L as Language>::SyntaxKind>>>
fn lex( &self, source: impl Source, ) -> OakDiagnostics<Vec<Token<<L as Language>::SyntaxKind>>>
Tokenizes the given source text into a sequence of tokens. Read more
Auto Trait Implementations§
impl Freeze for TexLanguage
impl RefUnwindSafe for TexLanguage
impl Send for TexLanguage
impl Sync for TexLanguage
impl Unpin for TexLanguage
impl UnwindSafe for TexLanguage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more