Skip to content

Commit

Permalink
fixed perl6 renaming to raku in new ace editor (v1.4.13)
Browse files Browse the repository at this point in the history
  • Loading branch information
bugy committed Dec 5, 2021
1 parent a95ba3c commit caf25c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion web-src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.17.0",
"private": true,
"dependencies": {
"ace-builds": "^1.4.12",
"ace-builds": "^1.4.13",
"axios": "^0.21.1",
"brace": "^0.11.1",
"codemirror": "^5.61.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ ace.config.setModuleUrl('ace/mode/javascript', require('file-loader!ace-builds/s
ace.config.setModuleUrl('ace/mode/python', require('file-loader!ace-builds/src-noconflict/mode-python.js'))
ace.config.setModuleUrl('ace/mode/sh', require('file-loader!ace-builds/src-noconflict/mode-sh.js'))
ace.config.setModuleUrl('ace/mode/powershell', require('file-loader!ace-builds/src-noconflict/mode-powershell.js'))
ace.config.setModuleUrl('ace/mode/perl6', require('file-loader!ace-builds/src-noconflict/mode-perl6.js'))
ace.config.setModuleUrl('ace/mode/raku', require('file-loader!ace-builds/src-noconflict/mode-raku.js'))
ace.config.setModuleUrl('ace/mode/r', require('file-loader!ace-builds/src-noconflict/mode-r.js'))
const allowedLanguages = {
'python': {aceName: 'python', extensions: ['py'], shebang: '#!/usr/bin/env python\n'},
'bash': {aceName: 'sh', extensions: ['sh'], shebang: '#!/bin/bash\n'},
'powershell': {aceName: 'powershell', extensions: ['ps1', 'psc1'], shebang: '#!/usr/bin/env pwsh\n'},
'perl': {aceName: 'perl6', extensions: ['pl'], shebang: '#!/usr/bin/env perl\n'},
'perl': {aceName: 'raku', extensions: ['pl'], shebang: '#!/usr/bin/env perl\n'},
'R': {aceName: 'r', extensions: ['r'], shebang: '#!/usr/bin/env Rscript\n'}
}
Expand Down

0 comments on commit caf25c0

Please sign in to comment.