fmt tests; properly define string literals; work on scanner
This commit is contained in:
@@ -1,61 +1,66 @@
|
||||
==================
|
||||
================================================================================
|
||||
basic block
|
||||
==================
|
||||
================================================================================
|
||||
|
||||
block_1 {
|
||||
}
|
||||
|
||||
---
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(config_file
|
||||
(body
|
||||
(block
|
||||
(identifier))))
|
||||
|
||||
==================
|
||||
================================================================================
|
||||
basic block on one line
|
||||
==================
|
||||
================================================================================
|
||||
|
||||
block_1 {}
|
||||
|
||||
---
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(config_file
|
||||
(body
|
||||
(block
|
||||
(identifier))))
|
||||
|
||||
==================
|
||||
================================================================================
|
||||
block with attribute
|
||||
==================
|
||||
================================================================================
|
||||
|
||||
block_1 "strlit1" "strlit2" {
|
||||
attr1 = "val1"
|
||||
}
|
||||
|
||||
---
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(config_file
|
||||
(body
|
||||
(block
|
||||
(identifier)
|
||||
(string_lit)
|
||||
(string_lit)
|
||||
(string_lit
|
||||
(template_literal))
|
||||
(string_lit
|
||||
(template_literal))
|
||||
(body
|
||||
(attribute
|
||||
(identifier)
|
||||
(expression (expr_term (template_expr (quoted_template)))))))))
|
||||
(expression
|
||||
(literal_value
|
||||
(string_lit
|
||||
(template_literal)))))))))
|
||||
|
||||
==================
|
||||
================================================================================
|
||||
nested block
|
||||
==================
|
||||
================================================================================
|
||||
|
||||
block_1 {
|
||||
block_2 {
|
||||
}
|
||||
}
|
||||
|
||||
---
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(config_file
|
||||
(body
|
||||
@@ -65,15 +70,15 @@ block_1 {
|
||||
(block
|
||||
(identifier))))))
|
||||
|
||||
==================
|
||||
================================================================================
|
||||
nested block on one line
|
||||
==================
|
||||
================================================================================
|
||||
|
||||
block_1 {
|
||||
block_2 {}
|
||||
}
|
||||
|
||||
---
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(config_file
|
||||
(body
|
||||
@@ -83,16 +88,16 @@ block_1 {
|
||||
(block
|
||||
(identifier))))))
|
||||
|
||||
==================
|
||||
================================================================================
|
||||
nested blocks
|
||||
==================
|
||||
================================================================================
|
||||
|
||||
block_1 {
|
||||
block_2 {}
|
||||
block_3 {}
|
||||
}
|
||||
|
||||
---
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(config_file
|
||||
(body
|
||||
|
||||
Reference in New Issue
Block a user