Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data VSToken = VSToken {
- line :: !Int
- startCharacter :: !Int
- length :: !Int
- tokenType :: VSTokenType
- tokenModifiers :: [VSTokenModifier]
- newtype VSTokenType = VSTokenType Text
- newtype VSTokenModifier = VSTokenModifier Text
- vs_namespace :: VSTokenType
- vs_class :: VSTokenType
- vs_enum :: VSTokenType
- vs_interface :: VSTokenType
- vs_struct :: VSTokenType
- vs_typeParameter :: VSTokenType
- vs_type :: VSTokenType
- vs_parameter :: VSTokenType
- vs_variable :: VSTokenType
- vs_property :: VSTokenType
- vs_enumMember :: VSTokenType
- vs_decorator :: VSTokenType
- vs_event :: VSTokenType
- vs_function :: VSTokenType
- vs_method :: VSTokenType
- vs_macro :: VSTokenType
- vs_label :: VSTokenType
- vs_comment :: VSTokenType
- vs_string :: VSTokenType
- vs_keyword :: VSTokenType
- vs_number :: VSTokenType
- vs_regexp :: VSTokenType
- vs_operator :: VSTokenType
- vs_declaration :: VSTokenModifier
- vs_definition :: VSTokenModifier
- vs_readonly :: VSTokenModifier
- vs_static :: VSTokenModifier
- vs_deprecated :: VSTokenModifier
- vs_abstract :: VSTokenModifier
- vs_async :: VSTokenModifier
- vs_modification :: VSTokenModifier
- vs_documentation :: VSTokenModifier
- vs_defaultLibrary :: VSTokenModifier
Documentation
VS Code token.
VSToken | |
|
Instances
ToJSON VSToken Source # | |
Defined in Language.Rzk.VSCode.Tokens | |
Generic VSToken Source # | |
type Rep VSToken Source # | |
Defined in Language.Rzk.VSCode.Tokens type Rep VSToken = D1 ('MetaData "VSToken" "Language.Rzk.VSCode.Tokens" "rzk-0.5.4-JS66zEb9ejzGm7QpGL4XRQ" 'False) (C1 ('MetaCons "VSToken" 'PrefixI 'True) ((S1 ('MetaSel ('Just "line") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "startCharacter") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "length") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "tokenType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 VSTokenType) :*: S1 ('MetaSel ('Just "tokenModifiers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [VSTokenModifier]))))) |
newtype VSTokenType Source #
VS Code token types. See https://code.visualstudio.com/api/language-extensions/semantic-highlight-guide#standard-token-types-and-modifiers.
Instances
ToJSON VSTokenType Source # | |
Defined in Language.Rzk.VSCode.Tokens toJSON :: VSTokenType -> Value # toEncoding :: VSTokenType -> Encoding # toJSONList :: [VSTokenType] -> Value # toEncodingList :: [VSTokenType] -> Encoding # | |
IsString VSTokenType Source # | |
Defined in Language.Rzk.VSCode.Tokens fromString :: String -> VSTokenType # |
newtype VSTokenModifier Source #
VS Code token modifiers. See https://code.visualstudio.com/api/language-extensions/semantic-highlight-guide#standard-token-types-and-modifiers.
Instances
ToJSON VSTokenModifier Source # | |
Defined in Language.Rzk.VSCode.Tokens toJSON :: VSTokenModifier -> Value # toEncoding :: VSTokenModifier -> Encoding # toJSONList :: [VSTokenModifier] -> Value # toEncodingList :: [VSTokenModifier] -> Encoding # | |
IsString VSTokenModifier Source # | |
Defined in Language.Rzk.VSCode.Tokens fromString :: String -> VSTokenModifier # |
Standard token types
vs_namespace :: VSTokenType Source #
For identifiers that declare or reference a namespace, module, or package.
vs_class :: VSTokenType Source #
For identifiers that declare or reference a class type.
vs_enum :: VSTokenType Source #
For identifiers that declare or reference an enumeration type.
vs_interface :: VSTokenType Source #
For identifiers that declare or reference an interface type.
vs_struct :: VSTokenType Source #
For identifiers that declare or reference a struct type.
vs_typeParameter :: VSTokenType Source #
For identifiers that declare or reference a type parameter.
vs_type :: VSTokenType Source #
For identifiers that declare or reference a type that is not covered above.
vs_parameter :: VSTokenType Source #
For identifiers that declare or reference a function or method parameters.
vs_variable :: VSTokenType Source #
For identifiers that declare or reference a local or global variable.
vs_property :: VSTokenType Source #
For identifiers that declare or reference a member property, member field, or member variable.
vs_enumMember :: VSTokenType Source #
For identifiers that declare or reference an enumeration property, constant, or member.
vs_decorator :: VSTokenType Source #
For identifiers that declare or reference decorators and annotations.
vs_event :: VSTokenType Source #
For identifiers that declare an event property.
vs_function :: VSTokenType Source #
For identifiers that declare a function.
vs_method :: VSTokenType Source #
For identifiers that declare a member function or method.
vs_macro :: VSTokenType Source #
For identifiers that declare a macro.
vs_label :: VSTokenType Source #
For identifiers that declare a label.
vs_comment :: VSTokenType Source #
For tokens that represent a comment.
vs_string :: VSTokenType Source #
For tokens that represent a string literal.
vs_keyword :: VSTokenType Source #
For tokens that represent a language keyword.
vs_number :: VSTokenType Source #
For tokens that represent a number literal.
vs_regexp :: VSTokenType Source #
For tokens that represent a regular expression literal.
vs_operator :: VSTokenType Source #
For tokens that represent an operator.
Standard token modifiers
vs_declaration :: VSTokenModifier Source #
For declarations of symbols.
vs_definition :: VSTokenModifier Source #
For definitions of symbols, for example, in header files.
vs_readonly :: VSTokenModifier Source #
For readonly variables and member fields (constants).
vs_static :: VSTokenModifier Source #
For class members (static members).
vs_deprecated :: VSTokenModifier Source #
For symbols that should no longer be used.
vs_abstract :: VSTokenModifier Source #
For types and member functions that are abstract.
vs_async :: VSTokenModifier Source #
For functions that are marked async.
vs_modification :: VSTokenModifier Source #
For variable references where the variable is assigned to.
vs_documentation :: VSTokenModifier Source #
For occurrences of symbols in documentation.
vs_defaultLibrary :: VSTokenModifier Source #
For symbols that are part of the standard library.