BashToken

Type Alias BashToken 

Source
pub type BashToken = BashSyntaxKind;

Aliased Type§

#[repr(u16)]
pub enum BashToken {
Show 19 variants Whitespace = 0, Newline = 1, Comment = 2, StringLiteral = 3, Variable = 4, NumberLiteral = 5, Identifier = 6, Keyword = 7, Operator = 8, Delimiter = 9, Command = 10, Path = 11, Heredoc = 12, GlobPattern = 13, SpecialChar = 14, Text = 15, SourceFile = 16, Error = 17, Eof = 18,
}

Variants§

§

Whitespace = 0

Whitespace characters (spaces, tabs)

§

Newline = 1

Newline characters

§

Comment = 2

Comments (starting with #)

§

StringLiteral = 3

String literals enclosed in quotes

§

Variable = 4

Variable references (e.g., $VAR)

§

NumberLiteral = 5

Numeric literals

§

Identifier = 6

Identifiers (variable names, function names, etc.)

§

Keyword = 7

Bash keywords (if, then, else, etc.)

§

Operator = 8

Operators (&&, ||, >, <, etc.)

§

Delimiter = 9

Delimiters (;, (, ), {, }, etc.)

§

Command = 10

Command names

§

Path = 11

File system paths

§

Heredoc = 12

Here documents

§

GlobPattern = 13

Glob patterns (*, ?, [])

§

SpecialChar = 14

Special characters with specific meaning

§

Text = 15

Plain text content

§

SourceFile = 16

Root node representing the entire source file

§

Error = 17

Error node for syntax errors

§

Eof = 18

End of file marker