Skip to content

Commit

Permalink
added r lang
Browse files Browse the repository at this point in the history
  • Loading branch information
AndiDittrich committed Jun 27, 2020
1 parent 5d34216 commit 9939185
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* Added: keyword `x16` for css element selectors
* Added: contextual keywords to csharp - thanks to [mabako on GitHub](https://github.com/EnlighterJS/EnlighterJS/pull/112)
* Added: kotlin string template support
* Added: `r` language support (covered by generic ruleset)
* Changed: css selector fragment highlighting is limited to the selector itself
* Changed: enhanced css unit parsing
* Changed: `java`, `scala`, `cpp` annotation token changed to `k11`
Expand Down
2 changes: 1 addition & 1 deletion dist/enlighterjs.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/lang/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export {prolog} from './prolog';
export {purebasic} from './purebasic';
export {python} from './python';
export {qml} from './qml';
export {r} from './r';
export {raw} from './raw';
export {ruby} from './ruby';
export {rust} from './rust';
Expand Down
21 changes: 21 additions & 0 deletions src/lang/r.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// ----------------------------------------------------------------------
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
// --
// Copyright 2020 Andi Dittrich <https://andidittrich.de>
// ----------------------------------------------------------------------

// Generic Rules/Regex
import {generic} from './generic';

// r language
// Author: [Andi Dittrich]
// --
export class r extends generic {

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

0 comments on commit 9939185

Please sign in to comment.