yary/docs/plain-scalar-indent.txt

46 lines
482 B
Plaintext
Raw Normal View History

2021-08-15 09:03:22 +00:00
# Plain scalar indentation
These are notes from my thought process while fixing errors
in the way indentation was detected during plain scalar parsing.
## Notes
~~~
a key: value
:: :value
^--indent:0
^
column:0
~~~
column = 0
indent = 0 + 1
column < indent? --> yes
~~~
hello:
- world
^ ^--column:5
indent:2
~~~
column = 5
indent = 2 + 1
column < indent? --> no
~~~
a key:
key: value
^^--column:3
indent:2
~~~
column = 3
indent = 2 + 1
column < indent? --> no