Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Available for Mac, Windows, and Linux.
- Currency conversion
- Syntax highlighting:

C++, C#, Clojure, CSS, Elixir, Erlang, Dart, Go, Groovy, HTML, Java, JavaScript, JSX, Kotlin, TypeScript, TOML, TSX, JSON, Lezer, Markdown, Mermaid, PHP, Python, Ruby, Rust, Scala, Shell, SQL, Swift, Vue, XML, YAML
C++, C#, Clojure, CSS, Elixir, Erlang, Dart, Go, Groovy, HTML, Java, JavaScript, JSX, Kotlin, TypeScript, TOML, TSX, JSON, Lezer, Markdown, Mermaid, PHP, Python, R, Ruby, Rust, Scala, Shell, SQL, Swift, Vue, XML, YAML

- Language auto-detection
- Auto-formatting
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Available for Mac, Windows, and Linux.
- Currency conversion
- Syntax highlighting:

C++, C#, Clojure, CSS, Elixir, Erlang, Dart, Go, Groovy, HTML, Java, JavaScript, JSX, Kotlin, TypeScript, TOML, TSX, JSON, Lezer, Markdown, PHP, Python, Ruby, Rust, Scala, Shell, SQL, Swift, Vue, XML, YAML
C++, C#, Clojure, CSS, Elixir, Erlang, Dart, Go, Groovy, HTML, Java, JavaScript, JSX, Kotlin, TypeScript, TOML, TSX, JSON, Lezer, Markdown, PHP, Python, R, Ruby, Rust, Scala, Shell, SQL, Swift, Vue, XML, YAML

- Language auto-detection
- Auto-formatting
Expand Down
2 changes: 1 addition & 1 deletion public/langdetect-worker.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
importScripts("guesslang.min.js")

GUESSLANG_LANGUAGES = ["json","py","html","sql","md","java","php","css","xml","cpp","rs","cs","rb","sh","yaml","toml","go","clj","ex","erl","js","ts","swift","kt","lua","groovy","ps1","dart","scala"]
GUESSLANG_LANGUAGES = ["json","py","html","sql","md","java","php","css","xml","cpp","rs","cs","rb","sh","yaml","toml","go","clj","ex","erl","js","ts","swift","kt","lua","groovy","ps1","dart","scala","r"]

const guessLang = new self.GuessLang()

Expand Down
2 changes: 1 addition & 1 deletion src/editor/lang-heynote/heynote.grammar
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ MetadataEntry {
"xml" | "cpp" | "rust" | "csharp" | "ruby" | "shell" | "yaml" |
"golang" | "clojure" | "elixir" | "erlang" | "lezer" | "toml" |
"swift" | "kotlin" | "groovy" | "diff" | "powershell" | "vue" |
"dart" | "scala" | "lua"| "mermaid"
"dart" | "scala" | "lua"| "mermaid" | "r"
}

Auto { "-a" }
Expand Down
2 changes: 1 addition & 1 deletion src/editor/lang-heynote/parser.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions src/editor/languages.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import { groovy } from "@codemirror/legacy-modes/mode/groovy"
import { diff } from "@codemirror/legacy-modes/mode/diff";
import { powerShell } from "@codemirror/legacy-modes/mode/powershell";
import { lua } from "@codemirror/legacy-modes/mode/lua";
import { r } from "@codemirror/legacy-modes/mode/r";

import typescriptPlugin from "prettier/plugins/typescript"
import babelPrettierPlugin from "prettier/plugins/babel"
Expand Down Expand Up @@ -301,6 +302,12 @@ export const LANGUAGES = [
parser: mermaidLanguage.parser ,
guesslang: null,
}),
new Language({
token: "r",
name: "R",
parser: StreamLanguage.define(r).parser ,
guesslang: "r",
}),
]


Expand Down
Loading