Skip to content

Commit

Permalink
chore: make lint happy with provided grammar comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sunng87 committed Mar 3, 2024
1 parent 6de7572 commit 40824c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/grammar.pest
@@ -1,3 +1,4 @@
//! Pest grammar for handlebars templating
WHITESPACE = _{ " "|"\t"|"\n"|"\r" }
keywords = { "as" | "else" }

Expand Down Expand Up @@ -76,7 +77,7 @@ partial_expression = { "{{" ~ pre_whitespace_omitter? ~ ">" ~ partial_exp_line
invert_tag_item = { "else"|"^" }
invert_tag = { !escape ~ "{{" ~ pre_whitespace_omitter? ~ invert_tag_item
~ pro_whitespace_omitter? ~ "}}" }
invert_chain_tag = { !escape ~ "{{" ~ pre_whitespace_omitter? ~ invert_tag_item
invert_chain_tag = { !escape ~ "{{" ~ pre_whitespace_omitter? ~ invert_tag_item
~ exp_line ~ pro_whitespace_omitter? ~ "}}" }
helper_block_start = { "{{" ~ pre_whitespace_omitter? ~ "#" ~ exp_line ~
pro_whitespace_omitter? ~ "}}" }
Expand Down Expand Up @@ -123,9 +124,8 @@ template = { (
parameter = _{ param ~ EOI }
handlebars = _{ template ~ EOI }

// json path visitor
// Disallowed chars: Whitespace ! " # % & ' ( ) * + , . / ; < = > @ [ \ ] ^ ` { | } ~

/// json path visitor
/// Disallowed chars: Whitespace ! " # % & ' ( ) * + , . / ; < = > @ [ \ ] ^ ` { | } ~
path_id = @{ symbol_char+ }

path_raw_id = { (!"]" ~ ANY)* }
Expand Down

0 comments on commit 40824c6

Please sign in to comment.