This is not mentioned in the readme, it took me some time to find the issue, but the syntax comment should be the first comment in the file otherwise it will not work.
Works:
# syntax = edrevo/dockerfile-plus
Doesn't work:
# other comments
# syntax = edrevo/dockerfile-plus