highlightjs / highlightjs-lang

A highlight.js grammar for Minecraft's language files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Strings that don't start with [A-Za-z] don't highlight as string

AdamRaichu opened this issue · comments

Problem

Given the following code, the following output is given. Because the string starts with §, it is ignored and not highlighted.

item.name=§0Hello
other.name=Test
<span class="hljs-attr">item.name</span>=§0Hello
<span class="hljs-attr">other.name</span>=<span class="hljs-string">Test</span>

The fix

Edit module.exports().contains[1].begin to include all allowed characters, not just A-Za-z.