firefly-compiler 0.4.85 → 0.4.86

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1185,7 +1185,7 @@ extend self: Parser {
1185
1185
 
1186
1186
  parseDynamicMember(record: Term): Term {
1187
1187
  self.skip(LArrowThin)
1188
- let token = self.skip(LLower)
1188
+ let token = if(self.current().is(LUpper)) {self.skip(LUpper)} else {self.skip(LLower)}
1189
1189
  let member = EString(token.at(), "\"" + token.raw() + "\"")
1190
1190
  if(self.current().rawIs("(")) {
1191
1191
  let arguments = self.parseFunctionArguments(record.at, False)
@@ -1540,7 +1540,9 @@ return result_
1540
1540
 
1541
1541
  export function Parser_parseDynamicMember(self_, record_) {
1542
1542
  ff_compiler_Parser.Parser_skip(self_, ff_compiler_Token.LArrowThin());
1543
- const token_ = ff_compiler_Parser.Parser_skip(self_, ff_compiler_Token.LLower());
1543
+ const token_ = (ff_compiler_Token.Token_is(ff_compiler_Parser.Parser_current(self_), ff_compiler_Token.LUpper())
1544
+ ? ff_compiler_Parser.Parser_skip(self_, ff_compiler_Token.LUpper())
1545
+ : ff_compiler_Parser.Parser_skip(self_, ff_compiler_Token.LLower()));
1544
1546
  const member_ = ff_compiler_Syntax.EString(ff_compiler_Token.Token_at(token_), (("\"" + ff_compiler_Token.Token_raw(token_)) + "\""));
1545
1547
  if(ff_compiler_Token.Token_rawIs(ff_compiler_Parser.Parser_current(self_), "(")) {
1546
1548
  const arguments_ = ff_compiler_Parser.Parser_parseFunctionArguments(self_, record_.at_, false);
@@ -3103,7 +3105,9 @@ return result_
3103
3105
 
3104
3106
  export async function Parser_parseDynamicMember$(self_, record_, $task) {
3105
3107
  ff_compiler_Parser.Parser_skip(self_, ff_compiler_Token.LArrowThin());
3106
- const token_ = ff_compiler_Parser.Parser_skip(self_, ff_compiler_Token.LLower());
3108
+ const token_ = (ff_compiler_Token.Token_is(ff_compiler_Parser.Parser_current(self_), ff_compiler_Token.LUpper())
3109
+ ? ff_compiler_Parser.Parser_skip(self_, ff_compiler_Token.LUpper())
3110
+ : ff_compiler_Parser.Parser_skip(self_, ff_compiler_Token.LLower()));
3107
3111
  const member_ = ff_compiler_Syntax.EString(ff_compiler_Token.Token_at(token_), (("\"" + ff_compiler_Token.Token_raw(token_)) + "\""));
3108
3112
  if(ff_compiler_Token.Token_rawIs(ff_compiler_Parser.Parser_current(self_), "(")) {
3109
3113
  const arguments_ = ff_compiler_Parser.Parser_parseFunctionArguments(self_, record_.at_, false);
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "description": "Firefly compiler",
5
5
  "author": "Firefly team",
6
6
  "license": "MIT",
7
- "version": "0.4.85",
7
+ "version": "0.4.86",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/Ahnfelt/firefly-boot"
@@ -4,7 +4,7 @@
4
4
  "description": "Firefly language support",
5
5
  "author": "Firefly team",
6
6
  "license": "MIT",
7
- "version": "0.4.85",
7
+ "version": "0.4.86",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/Ahnfelt/firefly-boot"
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "dynamic-member": {
41
41
  "name": "string.unquoted.firefly",
42
- "match": "(?<=[-][>][ ]*)[a-z][A-Za-z0-9]*\\b"
42
+ "match": "(?<=[-][>][ ]*)[A-Za-z][A-Za-z0-9]*\\b"
43
43
  },
44
44
  "field-or-call": {
45
45
  "name": "entity.name.function.member.firefly",