Skip to content

Commit

Permalink
feat(JSON): support .jsonc extension (#1022)
Browse files Browse the repository at this point in the history
JSONC is JSON with comments. The JSON lexer already supports comments.
  • Loading branch information
CarterLi authored Nov 19, 2024
1 parent 539d031 commit df769f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lexers/embedded/json.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<name>JSON</name>
<alias>json</alias>
<filename>*.json</filename>
<filename>*.jsonc</filename>
<filename>*.avsc</filename>
<mime_type>application/json</mime_type>
<dot_all>true</dot_all>
Expand Down Expand Up @@ -108,4 +109,4 @@
</rule>
</state>
</rules>
</lexer>
</lexer>

0 comments on commit df769f9

Please sign in to comment.