HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Static Public Member Functions | Data Fields
hi::v1::lexer_config Struct Reference

Static Public Member Functions

static constexpr lexer_config sh_style () noexcept
 
static constexpr lexer_config json_style () noexcept
 
static constexpr lexer_config c_style () noexcept
 
static constexpr lexer_config css_style () noexcept
 
static constexpr lexer_config ini_style () noexcept
 

Data Fields

uint16_t zero_starts_octal: 1 = 0
 A zero starts in octal number.
 
uint16_t escape_by_quote_doubling: 1 = 0
 Escaping quotes within a string may be done using quote doubling.
 
uint16_t has_color_literal: 1 = 0
 The language has a literal color.
 
uint16_t has_double_quote_string_literal: 1 = 0
 
uint16_t has_single_quote_string_literal: 1 = 0
 
uint16_t has_back_quote_string_literal: 1 = 0
 
uint16_t has_double_slash_line_comment: 1 = 0
 
uint16_t has_hash_line_comment: 1 = 0
 
uint16_t has_semicolon_line_comment: 1 = 0
 
uint16_t has_c_block_comment: 1 = 0
 
uint16_t has_sgml_block_comment: 1 = 0
 
uint16_t filter_white_space: 1 = 0
 
uint16_t filter_comment: 1 = 0
 
uint16_t has_dot_star_operator: 1 = 0
 The '.
 
uint16_t has_dot_dot_operator: 1 = 0
 The '..', '...' and '..<' operators used in Swift as the range operators.
 
uint16_t equal_is_ini_assignment: 1 = 0
 The equal '=' character is used for INI-like assignment.S.
 
uint16_t colon_is_ini_assignment: 1 = 0
 The colon ':' character is used for INI-like assignment.
 
uint16_t minus_in_identifier: 1 = 0
 
char digit_separator = '\0'
 The character used to separate groups of numbers.
 

Field Documentation

◆ colon_is_ini_assignment

uint16_t hi::v1::lexer_config::colon_is_ini_assignment

The colon ':' character is used for INI-like assignment.

After the colon ':':

  • Skip over any non-linefeed whitespace.
  • If the next character is a annex 31 starter, then the rest of the line is treated as a string token.
  • Any other character will resolved as normal.

◆ digit_separator

char hi::v1::lexer_config::digit_separator = '\0'

The character used to separate groups of numbers.

This character is the character that will be ignored by a language if it appears in a integer or floating point literal.

For C and C++ this is the quote character, some other languages use an underscore. If the language does not support group separator set this to '\0'.

◆ equal_is_ini_assignment

uint16_t hi::v1::lexer_config::equal_is_ini_assignment

The equal '=' character is used for INI-like assignment.S.

After the equal sign '=':

  • Skip over any non-linefeed whitespace.
  • If the next character is a annex 31 starter, then the rest of the line is treated as a string token.
  • Any other character will resolved as normal.

◆ escape_by_quote_doubling

uint16_t hi::v1::lexer_config::escape_by_quote_doubling

Escaping quotes within a string may be done using quote doubling.

◆ has_color_literal

uint16_t hi::v1::lexer_config::has_color_literal

The language has a literal color.

This is a hash '#' followed by a hexadecimal number.

◆ has_dot_dot_operator

uint16_t hi::v1::lexer_config::has_dot_dot_operator

The '..', '...' and '..<' operators used in Swift as the range operators.

◆ has_dot_star_operator

uint16_t hi::v1::lexer_config::has_dot_star_operator

The '.

*' operators used in C++ as member-pointer operator.

◆ zero_starts_octal

uint16_t hi::v1::lexer_config::zero_starts_octal

A zero starts in octal number.

By default a zero starts a decimal number, but some languages like C and C++ start an octal number with zero.


The documentation for this struct was generated from the following file: