From 75cf5ded6e3879a424d8cb7fc79ae6da65f736f1 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Tue, 10 Sep 2019 17:08:29 -0700 Subject: [PATCH] hclsyntax: Correct specification of the interpretation of tabs This changed during development as we iterated on the prototype, but the spec is lagging behind. --- hclsyntax/spec.md | 7 +++---- 1 file 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 `*/`