From 204bb867b07f17e0ed3d3622d7bcd73461bad2ec Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Wed, 19 Apr 2017 23:22:10 -0400 Subject: [PATCH] taking the identifier-with-dashes thing back out. it doesnt mesh well with D and JS --- script.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script.d b/script.d index 11af594..e7ff72e 100644 --- a/script.d +++ b/script.d @@ -34,7 +34,7 @@ SPECIFICS $(LIST - * Allows identifiers-with-dashes. To do subtraction, put spaces around the minus sign. + // * Allows identifiers-with-dashes. To do subtraction, put spaces around the minus sign. * Allows identifiers starting with a dollar sign. * string literals come in "foo" or 'foo', like Javascript, or `raw string` like D. Also come as “nested “double quotes” are an option!” * double quoted string literals can do Ruby-style interpolation: "Hello, #{name}". @@ -476,7 +476,7 @@ class TokenStream(TextStream) { while(pos < text.length && ((text[pos] >= 'a' && text[pos] <= 'z') || (text[pos] == '_') || - (pos != 0 && text[pos] == '-') || // allow mid-identifier dashes for this-kind-of-name. For subtraction, add a space. + //(pos != 0 && text[pos] == '-') || // allow mid-identifier dashes for this-kind-of-name. For subtraction, add a space. (text[pos] >= 'A' && text[pos] <= 'Z') || (text[pos] >= '0' && text[pos] <= '9'))) {