Skip to content

Commit

Permalink
JSON5 syntax highlighting in Admin UI
Browse files Browse the repository at this point in the history
  • Loading branch information
ks-yim committed Dec 11, 2021
1 parent 4216543 commit 29b6eb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ clientDependencies {
installDir = "${project.projectDir}/src/main/resources/webapp/vendor"
copyExcludes = ['**/Gruntfile.js', 'gulpfile.js', 'source/**', 'test', 'karma.conf.js', 'index.js']
npm {
'ace-builds'('1.2.5', from: 'src-min-noconflict')
'ace-builds'('1.4.13', from: 'src-min-noconflict')
'angular'('1.5.8')
'angular-cache-buster'('0.4.3')
'angular-cookies'('1.5.8')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ angular.module('CentralDogmaAdmin')
var modelist = window.ace.require('ace/ext/modelist');
var mode = modelist.getModeForPath(value).mode;
session.setMode(mode);
if (mode === 'ace/mode/json') {
if (mode === 'ace/mode/json' || mode === 'ace/mode/json5') {
session.setTabSize(2);
} else {
session.setTabSize(4);
Expand Down

0 comments on commit 29b6eb9

Please sign in to comment.