 }"""
 
 
-  it 'correctly highlights position within a top-level compiling function', ->
+
+  it 'within a path for func', ->
+    a.throws (-> ss a: b: $bar: 5),
+    """
+Error: The function "$bar" is not defined.
+
+{
+  "a": {
+    "b": {
+      "$bar": 5
+        ^^^
+    }
+  }
+}"""
+
+
+
+  it 'within a root-level func', ->
     a.throws (-> ss $not: $bar: 5 ),
     """
 Error: The function "$bar" is not defined.

  }
}"""

  it 'correctly highlights position within a sub-level compiling function', ->
    a.throws (-> ss a: $not: $bar: 5 ),
    """
Error: The function "$bar" is not defined.

  }
}"""



  it 'within an array-accepting sub-level func', ->
    a.throws (-> ss a: $or: [{$bar: 5}, {$gte: 6}] ),
    """
Error: The function "$bar" is not defined.
