chroma icon indicating copy to clipboard operation
chroma copied to clipboard

PHTML lexer takes priority over PHP?

Open gandarez opened this issue 3 years ago • 3 comments

Describe the bug

An empty file.php is being parsed as PHTML instead of a PHP file because PHTML lexer has higher priority (actual 2) over PHP which is 0. To maybe fix it we might set PHP with priority 1 and PHTML with priority 0.1?

To Reproduce

N/A

relates https://github.com/alecthomas/chroma/pull/477

gandarez avatar Nov 28 '21 03:11 gandarez

anybody?

gandarez avatar Dec 02 '21 21:12 gandarez

hello

gandarez avatar Feb 06 '22 22:02 gandarez

I have no real opinion on this, but if you think this is the right thing to do please send a PR.

alecthomas avatar Feb 06 '22 23:02 alecthomas