Skip to content

Commit

Permalink
language alias js was processed as typescript due to inheritance …
Browse files Browse the repository at this point in the history
…issue (missing override)
  • Loading branch information
AndiDittrich committed Nov 5, 2022
1 parent 5cb6263 commit 2d74542
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* Changed: toolbar position is now persistent and not affected by horizontal/vertical scrolling
* Bugfix: `bash` pound style comment regex also matched variable substituions and special cases - thanks to [maidentaiwan on GitHub](https://github.com/EnlighterJS/EnlighterJS/issues/200)
* Bugfix: `bash` single quoted strings not highlighted
* Bugfix: language alias `js` was processed as `typescript` due to inheritance issue (missing override)

### Version 3.5.0 ###

Expand Down
2 changes: 1 addition & 1 deletion dist/enlighterjs.min.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions src/lang/cython.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ import {python} from './python';
// --
export class cython extends python{

// language aliases
static alias(){
return [];
}

setupLanguage(){
// run python regex setup
super.setupLanguage();
Expand Down
5 changes: 5 additions & 0 deletions src/lang/jsx.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ import {javascript} from './javascript';
// --
export class jsx extends javascript {

// language aliases
static alias(){
return [];
}

setupLanguage(){
// setup css
super.setupLanguage();
Expand Down
5 changes: 5 additions & 0 deletions src/lang/less.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ import _common_css_rules from './rulesets/css';
// --
export class less extends css {

// language aliases
static alias(){
return [];
}

setupLanguage(){
// setup css
super.setupLanguage();
Expand Down
5 changes: 5 additions & 0 deletions src/lang/mssql.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ import {sql} from './sql';
// --
export class mssql extends sql {

// language aliases
static alias(){
return [];
}

setupLanguage(){
// setup css
super.setupLanguage();
Expand Down
5 changes: 5 additions & 0 deletions src/lang/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ import {javascript} from './javascript';
// --
export class typescript extends javascript{

// language aliases
static alias(){
return [];
}

setupLanguage(){
// run python regex setup
super.setupLanguage();
Expand Down

0 comments on commit 2d74542

Please sign in to comment.