summaryrefslogtreecommitdiff
path: root/parse/tok.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-10-07 15:46:08 -0400
committerOri Bernstein <ori@eigenstate.org>2014-10-07 15:46:08 -0400
commit346c26a93cb79f89c3d0fb12d0a2d749956cebdb (patch)
treea40ff79a09bde6d747db5c2fe77cb3a64e634e51 /parse/tok.c
parentd8d9e18a0b73ed54f41cbfa619a9250874b6b18b (diff)
downloadmc-346c26a93cb79f89c3d0fb12d0a2d749956cebdb.tar.gz
Whitespace consistency fixes.
Diffstat (limited to 'parse/tok.c')
-rw-r--r--parse/tok.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/parse/tok.c b/parse/tok.c
index 33782a6..af43857 100644
--- a/parse/tok.c
+++ b/parse/tok.c
@@ -81,7 +81,7 @@ static Tok *mktok(int tt)
static int identchar(int c)
{
- return isalnum(c) || c == '_';
+ return isalnum(c) || c == '_' || c == '$';
}
static void eatcomment(void)
@@ -161,6 +161,7 @@ static void eatspace(void)
static int kwd(char *s)
{
static const struct {char* kw; int tt;} kwmap[] = {
+ {"$nonret", Tattr},
{"break", Tbreak},
{"castto", Tcast},
{"const", Tconst},