summaryrefslogtreecommitdiff
path: root/lex.h
diff options
context:
space:
mode:
Diffstat (limited to 'lex.h')
-rw-r--r--lex.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lex.h b/lex.h
index b6a102d..57c71bb 100644
--- a/lex.h
+++ b/lex.h
@@ -37,6 +37,8 @@ DECLARE_VEC(Word, WordVec)
typedef enum {
TOK_WORD,
TOK_SPECIAL,
+ TOK_PROCSUB_IN,
+ TOK_PROCSUB_OUT,
} TokenKind;
typedef enum {
@@ -44,9 +46,6 @@ typedef enum {
WRITE_REDIR_TRUNC,
WRITE_REDIR_APPEND,
READ_REDIR,
- L_PROC_SUB_IN,
- L_PROC_SUB_OUT,
- PAREN,
EOL,
} SpecialToken;
@@ -56,6 +55,7 @@ typedef struct {
union {
Word word;
SpecialToken spec;
+ Region* procsub_region;
} as;
} Token;
@@ -65,7 +65,7 @@ DECLARE_VEC(Token, TokenVec)
DECLARE_MAYBE(SpecialToken)
typedef enum {
- CMD_SUB,
+ CMDS,
ARITHM,
} RegionMode;