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

Interpolations incorrectly highlighted as an error #85

Closed kirjs closed 2 years ago

kirjs commented 2 years ago

Describe the bug Interpolations incorrectly highlighted as an error

To Reproduce

rules_version = '2';

service cloud.firestore {
  match /databases/{database}/documents {
    match /hotels/{hotelId}/availability/{document=**} {
      allow read, write: if get(/databases/$(database)/documents/hotels/$(hotelId)/users/$(request.auth.uid)).data.write == true;
    }
  }
}

Expected behavior This compiles and works in firestore

Screenshots image

Desktop (please complete the following information):

dalgarins commented 2 years ago
Captura de Pantalla 2021-12-20 a la(s) 8 49 53 p m

@kirjs thanks for your comments, issue is fixed right now, and it will available on version: 2.7.0