Skip to content

Commit b781041

Browse files
committed
fix for variables length of 1 character
1 parent 9987d66 commit b781041

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.gradle
22
build/
33
!gradle/wrapper/gradle-wrapper.jar
4-
!**/src/main/**/build/
5-
!**/src/test/**/build/
4+
**/src/main/**/build/
5+
**/src/test/**/build/
66

77
### IntelliJ IDEA ###
88
.idea
@@ -42,4 +42,4 @@ bin/
4242
### Antlr files that IDE tools may generate
4343
src/main/antlr/net/rptools/maptool/advanceddice/gen
4444
src/main/antlr/net/rptools/maptool/advanceddice/build
45-
src/main/gen
45+
src/main/gen

src/main/antlr/net/rptools/maptool/advanceddice/parser/GenesysDiceLexer.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ FUNCTION : '#' IDENTIFIER;
7070
// Variables
7171
PROPERTY : LBRACE '@' (~[}])+ RBRACE;
7272
PROMPT : LBRACE '?' (~[}])+ RBRACE;
73-
VARIABLE : LBRACE (~[?@]) (~[}])+ RBRACE;
73+
VARIABLE : LBRACE (~[?@]) (~[}])* RBRACE;
7474
7575
7676
// Dice Types

src/main/antlr/net/rptools/maptool/advanceddice/parser/GenesysDiceParser.g4

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ genesysNumberDice : INTEGER_LITERAL
5656
| PROMPT
5757
;
5858

59-
6059
genesysFunction : func=FUNCTION LPAREN genesysFunctionParams RPAREN
6160
;
6261

0 commit comments

Comments
 (0)