I would have to agree with the commenter referenced above. JSON-LD is something far more than just JSON, it is an attempt to allow sematics of the simple `name : value` pairs of JSON to be agreed between two users of JSON for data interchange, by reference to external schema which the IRI addresses. For example a simple JSON name `"bark"` could be `"tree:bark"` or `"dog:bark"` so their allowed values are different, `"rough"` and `"ruff"` :-)
So unless an external schema identified in the `@context` specifies that the `tree` prefix in a property name `"tree:bark"` is a valid prefix that can expand to an IRI wherein its semantics are defined then `"tree:bark"` is just a string name that happens to contain a `:`. For the C programmers, its like a line `mytype var;` it must be known that `mytype` is a typename to determine this is a valid variable declaration. And just like the C lexers cannot determine that, it is too much to ask of the JSON lexer. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/3647#issuecomment-1779000985 You are receiving this because you are subscribed to this thread. Message ID: <geany/geany/pull/3647/[email protected]>
