anboralabs / intellij-firebase-highlighter

A Syntax Highlighter for Firebase Rules.
https://plugins.jetbrains.com/plugin/15189-firebase-rules
MIT License
27 stars 6 forks source link

Unexpected error in map keys #108

Closed akiym closed 1 year ago

akiym commented 1 year ago

Describe the bug Unexpected error occurs in the second and subsequent map keys.

To Reproduce

rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    allow read, write: if false;

    function test() {
      let a = {'a': 1, 'b': 2, 'c': 3};
      return a;
    }
  }
}

Expected behavior No unexpected error occurs in maps keys.

Screenshots

Screen Shot 2022-12-19 at 15 06 36

Desktop (please complete the following information):

dalgarins commented 1 year ago

Issue cloned to https://github.com/anboralabs/intellij-firebase/issues/13

dalgarins commented 1 year ago
Captura de Pantalla 2022-12-19 a la(s) 12 16 14 p m

@akiym the issue will be fixed on version: 2022.5.4

akiym commented 1 year ago

I've confirmed it works correctly with 2022.5.4. Thank you for fixing so quickly!