turtle.tmbundle icon indicating copy to clipboard operation
turtle.tmbundle copied to clipboard

Bug in `ttl` highlighting of abbreviations

Open jeswr opened this issue 2 years ago • 0 comments

Originally raised in https://github.com/github/linguist/issues/6352#issuecomment-1491447435.

Describe the bug

The syntax highlighter supports the a abbreviation in Turtle; this works well in examples like

ex:jesse a ex:thing

However, it also matches against cases it shouldn't, for instance when the letter a is the suffix of a prefixed URI such as in the example below

ex:a ex:b ex:c

Expected behaviour

The a in ex:a should not be highlighted in the second example above.

Related discussion

Additional notes

jeswr avatar Mar 31 '23 09:03 jeswr