-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't store the term sigil in the identifier name (#183)
- Loading branch information
Showing
15 changed files
with
198 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -548,7 +548,7 @@ | |
"type": "TermReference", | ||
"id": { | ||
"type": "Identifier", | ||
"name": "-msg" | ||
"name": "msg" | ||
} | ||
} | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
"type": "TermReference", | ||
"id": { | ||
"type": "Identifier", | ||
"name": "-term" | ||
"name": "term" | ||
} | ||
}, | ||
"key": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,7 @@ | |
"type": "TermReference", | ||
"id": { | ||
"type": "Identifier", | ||
"name": "-term" | ||
"name": "term" | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
key01 = {$var} | ||
key02 = { $var } | ||
key03 = { | ||
$var | ||
} | ||
key04 = { | ||
$var} | ||
## Errors | ||
|
||
# ERROR Missing variable identifier | ||
err01 = {$} | ||
# ERROR Double $$ | ||
err02 = {$$var} | ||
# ERROR Invalid first char of the identifier | ||
err03 = {$-var} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
{ | ||
"type": "Resource", | ||
"body": [ | ||
{ | ||
"type": "Message", | ||
"id": { | ||
"type": "Identifier", | ||
"name": "key01" | ||
}, | ||
"value": { | ||
"type": "Pattern", | ||
"elements": [ | ||
{ | ||
"type": "Placeable", | ||
"expression": { | ||
"type": "VariableReference", | ||
"id": { | ||
"type": "Identifier", | ||
"name": "var" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"attributes": [], | ||
"comment": null | ||
}, | ||
{ | ||
"type": "Message", | ||
"id": { | ||
"type": "Identifier", | ||
"name": "key02" | ||
}, | ||
"value": { | ||
"type": "Pattern", | ||
"elements": [ | ||
{ | ||
"type": "Placeable", | ||
"expression": { | ||
"type": "VariableReference", | ||
"id": { | ||
"type": "Identifier", | ||
"name": "var" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"attributes": [], | ||
"comment": null | ||
}, | ||
{ | ||
"type": "Message", | ||
"id": { | ||
"type": "Identifier", | ||
"name": "key03" | ||
}, | ||
"value": { | ||
"type": "Pattern", | ||
"elements": [ | ||
{ | ||
"type": "Placeable", | ||
"expression": { | ||
"type": "VariableReference", | ||
"id": { | ||
"type": "Identifier", | ||
"name": "var" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"attributes": [], | ||
"comment": null | ||
}, | ||
{ | ||
"type": "Message", | ||
"id": { | ||
"type": "Identifier", | ||
"name": "key04" | ||
}, | ||
"value": { | ||
"type": "Pattern", | ||
"elements": [ | ||
{ | ||
"type": "Placeable", | ||
"expression": { | ||
"type": "VariableReference", | ||
"id": { | ||
"type": "Identifier", | ||
"name": "var" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"attributes": [], | ||
"comment": null | ||
}, | ||
{ | ||
"type": "GroupComment", | ||
"content": "Errors" | ||
}, | ||
{ | ||
"type": "Comment", | ||
"content": "ERROR Missing variable identifier" | ||
}, | ||
{ | ||
"type": "Junk", | ||
"annotations": [], | ||
"content": "err01 = {$}\n" | ||
}, | ||
{ | ||
"type": "Comment", | ||
"content": "ERROR Double $$" | ||
}, | ||
{ | ||
"type": "Junk", | ||
"annotations": [], | ||
"content": "err02 = {$$var}\n" | ||
}, | ||
{ | ||
"type": "Comment", | ||
"content": "ERROR Invalid first char of the identifier" | ||
}, | ||
{ | ||
"type": "Junk", | ||
"annotations": [], | ||
"content": "err03 = {$-var}\n" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.