mirror of
https://github.com/uutils/awk.git
synced 2026-06-10 16:15:04 -07:00
fix: correctly handle ternary newlines
We might be better off handling this in the parser, though.
This commit is contained in:
+4
-4
@@ -194,11 +194,11 @@ pub enum Token<'a> {
|
||||
DoublePipe,
|
||||
#[token(">>", accept_expression)]
|
||||
AppendPipe,
|
||||
#[token("?", priority = 10)]
|
||||
#[regex(r"\?(?&ignore_with_nl)", parse_non_posix_operator, priority = 11)]
|
||||
#[regex(r"\?(?&ignore)?", priority = 11)]
|
||||
#[regex(r"\?(?&ignore_with_nl)", parse_non_posix_operator, priority = 10)]
|
||||
QuestionMark,
|
||||
#[token(":", priority = 10)]
|
||||
#[regex(r":(?&ignore_with_nl)", parse_non_posix_operator, priority = 11)]
|
||||
#[regex(":(?&ignore)?", priority = 11)]
|
||||
#[regex(r":(?&ignore_with_nl)", parse_non_posix_operator, priority = 10)]
|
||||
Colon,
|
||||
#[regex(r"\{(?&ignore_with_nl)", accept_expression)]
|
||||
OpenBrace,
|
||||
|
||||
Reference in New Issue
Block a user