Permalink
Browse files

Add support for .el, .ede, .org and .srt files (#151)

  • Loading branch information...
kaushalmodi authored and Aaronepower committed Oct 30, 2017
1 parent 5726c46 commit b5e415d6e2157aa5da670945af62e30f7eb715ab
Showing with 126 additions and 1 deletion.
  1. +4 −0 README.md
  2. +35 −1 languages.json
  3. +16 −0 tests/data/emacs_dev_env.ede
  4. +21 −0 tests/data/emacs_lisp.el
  5. +13 −0 tests/data/org_mode.org
  6. +37 −0 tests/data/srecode.srt
@@ -288,6 +288,8 @@ Device Tree
Dockerfile
Elixir
Elm
Emacs Development Environment
Emacs Lisp
Erlang
Forth
F*
@@ -330,6 +332,7 @@ Nix
OCaml
Objective C
Objective C++
Org mode
Oz
Pascal
Perl
@@ -352,6 +355,7 @@ Rust
Sass
Scala
Scons
SRecode Template
Standard ML
SQL
SVG
@@ -371,6 +371,15 @@
["'", "'"]
]
},
"Elisp":{
"name":"Emacs Lisp",
"line_comment":[
";"
],
"extensions":[
"el"
]
},
"Elixir":{
"line_comment":[
"#"
@@ -392,6 +401,15 @@
"elm"
]
},
"EmacsDevEnv":{
"name":"Emacs Dev Env",
"line_comment":[
";"
],
"extensions":[
"ede"
]
},
"Erlang":{
"line_comment":[
"%"
@@ -724,7 +742,6 @@
],
"nested":true,
"extensions":[
"el",
"lisp",
"lsp"
]
@@ -840,6 +857,14 @@
"mli"
]
},
"Org":{
"line_comment":[
"# "
],
"extensions":[
"org"
]
},
"Oz":{
"base":"pro",
"extensions":[
@@ -1088,6 +1113,15 @@
"sql"
]
},
"SRecode":{
"name": "SRecode Template",
"line_comment":[
";;"
],
"extensions":[
"srt"
]
},
"Svg":{
"name":"SVG",
"base":"html",
@@ -0,0 +1,16 @@
;; 16 lines 6 code 7 comments 3 blanks
;; This is an EDE Project file
;; Object ede-proj-project
;; EDE project file.
(ede-proj-project "ede-proj-project"
:name "my-proj"
:version "1.0.0"
:file "Project.ede"
:targets (list
))
;; Local Variables:
;; mode: emacs-lisp
;; End:
@@ -0,0 +1,21 @@
;; 21 lines 11 code 6 comments 4 blanks
; This is a comment line
;; This too!
;;; This 3!
;;;; This 4!
(setq some-global-var nil) ;Comment
;;;###autoload
(defun some-fn ()
"Some function."
(interactive)
(message "I am some function"))
(defun fundamental-mode ()
"Major mode not specialized for anything in particular.
Other major modes are defined by comparison with this one."
(interactive)
(kill-all-local-variables)
(run-mode-hooks))
@@ -0,0 +1,13 @@
# 13 lines 7 code 2 comments 4 blanks
#+TITLE: This is the title, not a comment
# This is comment
Some text
* Heading 1
:PROPERTIES:
:CUSTOM_ID: heading-1
:END:
Text under heading 1
@@ -0,0 +1,37 @@
;; 37 lines 23 code 2 comments 12 blanks
set escape_start "$"
set escape_end "$"
set mode "srecode-template-mode"
set priority "70"
set comment_start ";;"
set comment_end ""
set comment_prefix ";;"
set SEPARATOR "----"
set DOLLAR "$"
context file
prompt MAJORMODE "Major Mode for templates: " read srecode-read-major-mode-name
prompt START "Escape Start Characters: " default "{{"
prompt END "Escape End Characters: " default "}}"
template empty :file :user :time :srt
"Insert a skeleton for a template file."
----
$>:filecomment$
set mode "$?MAJORMODE$"
set escape_start "$?START$"
set escape_end "$?END$"
context file
$^$
;; end
----

0 comments on commit b5e415d

Please sign in to comment.