Skip to content

Commit

Permalink
Fix #419: Adding Handlebars syntax highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbylight committed Nov 20, 2022
1 parent 7bb63d9 commit 5403728
Show file tree
Hide file tree
Showing 18 changed files with 7,421 additions and 48 deletions.
Expand Up @@ -45,6 +45,7 @@ protected void initTokenMakerMap() {
putMapping(SYNTAX_STYLE_FORTRAN, pkg + "FortranTokenMaker");
putMapping(SYNTAX_STYLE_GO, pkg + "GoTokenMaker");
putMapping(SYNTAX_STYLE_GROOVY, pkg + "GroovyTokenMaker");
putMapping(SYNTAX_STYLE_HANDLEBARS, pkg + "HandlebarsTokenMaker");
putMapping(SYNTAX_STYLE_HOSTS, pkg + "HostsTokenMaker");
putMapping(SYNTAX_STYLE_HTACCESS, pkg + "HtaccessTokenMaker");
putMapping(SYNTAX_STYLE_HTML, pkg + "HTMLTokenMaker");
Expand Down
Expand Up @@ -405,6 +405,7 @@ private void initializeFilters() {
initFiltersImpl(map, SYNTAX_STYLE_FORTRAN, "*.f", "*.for", "*.fort", "*.f77", "*.f90");
initFiltersImpl(map, SYNTAX_STYLE_GO, "*.go");
initFiltersImpl(map, SYNTAX_STYLE_GROOVY, "*.groovy", "*.gradle", "*.grv", "*.gy", "*.gvy", "*.gsh");
initFiltersImpl(map, SYNTAX_STYLE_HANDLEBARS, "*.hbs", "*.handlebars");
initFiltersImpl(map, SYNTAX_STYLE_HOSTS, "hosts");
initFiltersImpl(map, SYNTAX_STYLE_HTACCESS, ".htaccess");
initFiltersImpl(map, SYNTAX_STYLE_HTML, "*.htm", "*.html");
Expand Down
Expand Up @@ -142,6 +142,12 @@ public interface SyntaxConstants {
String SYNTAX_STYLE_GROOVY = "text/groovy";


/**
* Style for highlighting Handlebars files.
*/
String SYNTAX_STYLE_HANDLEBARS = "text/handlebars";


/**
* Style for highlighting hosts files.
*/
Expand Down

0 comments on commit 5403728

Please sign in to comment.