Skip to content

Unexpected end of input causes the entire file to be highlighted in red #17

@Ostrzyciel

Description

@Ostrzyciel

I typed this into VS code:

@prefix rb: <https://w3id.org/riverbench/schema/metadata#>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.

<#me> a foaf:Person ;
    foaf:knows "me" .

<#you> a foaf:Person ;
    foaf:knows "you" .

<#dataset> a rb:Dataset ;
    rdfs:label "Test dataset"

There is a missing dot (.) at the end of the input, which is an error. I would expect only the last two triples to be highlighted in red. However, I see the entire file being highlighted in red:

Image

This makes it harder to find the actual error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions