diff options
| author | Martin Atkins <mart@degeneration.co.uk> | 2019-09-10 17:08:29 -0700 |
|---|---|---|
| committer | Martin Atkins <mart@degeneration.co.uk> | 2019-10-01 15:59:10 -0700 |
| commit | 75cf5ded6e3879a424d8cb7fc79ae6da65f736f1 (patch) | |
| tree | 321967200c27ec77a22be0a924c622c566757446 | |
| parent | 938b3d33190298a2bab8c1f08554bc60c073bc66 (diff) | |
hclsyntax: Correct specification of the interpretation of tabs
This changed during development as we iterated on the prototype, but the
spec is lagging behind.
| -rw-r--r-- | hclsyntax/spec.md | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/hclsyntax/spec.md b/hclsyntax/spec.md index d7faeed..4a50495 100644 --- a/hclsyntax/spec.md +++ b/hclsyntax/spec.md @@ -71,14 +71,13 @@ except as described below. Whitespace is defined as a sequence of zero or more space characters (U+0020). Newline sequences (either U+000A or U+000D followed by U+000A) are _not_ considered whitespace but are ignored as such in certain contexts. - -Horizontal tab characters (U+0009) are not considered to be whitespace and -are not valid within HCL native syntax. +Horizontal tab characters (U+0009) are also treated as whitespace, but are +counted only as one "column" for the purpose of reporting source positions. Comments serve as program documentation and come in two forms: - _Line comments_ start with either the `//` or `#` sequences and end with - the next newline sequence. A line comments is considered equivalent to a + the next newline sequence. A line comment is considered equivalent to a newline sequence. - _Inline comments_ start with the `/*` sequence and end with the `*/` |
