mirror of https://github.com/adamdruppe/arsd.git
taking the identifier-with-dashes thing back out. it doesnt mesh well with D and JS
This commit is contained in:
parent
0f8df3f6cd
commit
204bb867b0
4
script.d
4
script.d
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
SPECIFICS
|
SPECIFICS
|
||||||
$(LIST
|
$(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.
|
* 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!”
|
* 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}".
|
* double quoted string literals can do Ruby-style interpolation: "Hello, #{name}".
|
||||||
|
@ -476,7 +476,7 @@ class TokenStream(TextStream) {
|
||||||
while(pos < text.length
|
while(pos < text.length
|
||||||
&& ((text[pos] >= 'a' && text[pos] <= 'z') ||
|
&& ((text[pos] >= 'a' && text[pos] <= 'z') ||
|
||||||
(text[pos] == '_') ||
|
(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] >= 'A' && text[pos] <= 'Z') ||
|
||||||
(text[pos] >= '0' && text[pos] <= '9')))
|
(text[pos] >= '0' && text[pos] <= '9')))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue