Update ACE Editor to version 1.32.6
This commit is contained in:

committed by
Sebastian Serth

parent
0a473c7fd3
commit
b00d45521b
101
vendor/assets/javascripts/ace/snippets/haskell.js
vendored
101
vendor/assets/javascripts/ace/snippets/haskell.js
vendored
@ -1,89 +1,16 @@
|
||||
define("ace/snippets/haskell",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText = "snippet lang\n\
|
||||
{-# LANGUAGE ${1:OverloadedStrings} #-}\n\
|
||||
snippet info\n\
|
||||
-- |\n\
|
||||
-- Module : ${1:Module.Namespace}\n\
|
||||
-- Copyright : ${2:Author} ${3:2011-2012}\n\
|
||||
-- License : ${4:BSD3}\n\
|
||||
--\n\
|
||||
-- Maintainer : ${5:email@something.com}\n\
|
||||
-- Stability : ${6:experimental}\n\
|
||||
-- Portability : ${7:unknown}\n\
|
||||
--\n\
|
||||
-- ${8:Description}\n\
|
||||
--\n\
|
||||
snippet import\n\
|
||||
import ${1:Data.Text}\n\
|
||||
snippet import2\n\
|
||||
import ${1:Data.Text} (${2:head})\n\
|
||||
snippet importq\n\
|
||||
import qualified ${1:Data.Text} as ${2:T}\n\
|
||||
snippet inst\n\
|
||||
instance ${1:Monoid} ${2:Type} where\n\
|
||||
${3}\n\
|
||||
snippet type\n\
|
||||
type ${1:Type} = ${2:Type}\n\
|
||||
snippet data\n\
|
||||
data ${1:Type} = ${2:$1} ${3:Int}\n\
|
||||
snippet newtype\n\
|
||||
newtype ${1:Type} = ${2:$1} ${3:Int}\n\
|
||||
snippet class\n\
|
||||
class ${1:Class} a where\n\
|
||||
${2}\n\
|
||||
snippet module\n\
|
||||
module `substitute(substitute(expand('%:r'), '[/\\\\]','.','g'),'^\\%(\\l*\\.\\)\\?','','')` (\n\
|
||||
) where\n\
|
||||
`expand('%') =~ 'Main' ? \"\\n\\nmain = do\\n print \\\"hello world\\\"\" : \"\"`\n\
|
||||
\n\
|
||||
snippet const\n\
|
||||
${1:name} :: ${2:a}\n\
|
||||
$1 = ${3:undefined}\n\
|
||||
snippet fn\n\
|
||||
${1:fn} :: ${2:a} -> ${3:a}\n\
|
||||
$1 ${4} = ${5:undefined}\n\
|
||||
snippet fn2\n\
|
||||
${1:fn} :: ${2:a} -> ${3:a} -> ${4:a}\n\
|
||||
$1 ${5} = ${6:undefined}\n\
|
||||
snippet ap\n\
|
||||
${1:map} ${2:fn} ${3:list}\n\
|
||||
snippet do\n\
|
||||
do\n\
|
||||
\n\
|
||||
snippet λ\n\
|
||||
\\${1:x} -> ${2}\n\
|
||||
snippet \\\n\
|
||||
\\${1:x} -> ${2}\n\
|
||||
snippet <-\n\
|
||||
${1:a} <- ${2:m a}\n\
|
||||
snippet ←\n\
|
||||
${1:a} <- ${2:m a}\n\
|
||||
snippet ->\n\
|
||||
${1:m a} -> ${2:a}\n\
|
||||
snippet →\n\
|
||||
${1:m a} -> ${2:a}\n\
|
||||
snippet tup\n\
|
||||
(${1:a}, ${2:b})\n\
|
||||
snippet tup2\n\
|
||||
(${1:a}, ${2:b}, ${3:c})\n\
|
||||
snippet tup3\n\
|
||||
(${1:a}, ${2:b}, ${3:c}, ${4:d})\n\
|
||||
snippet rec\n\
|
||||
${1:Record} { ${2:recFieldA} = ${3:undefined}\n\
|
||||
, ${4:recFieldB} = ${5:undefined}\n\
|
||||
}\n\
|
||||
snippet case\n\
|
||||
case ${1:something} of\n\
|
||||
${2} -> ${3}\n\
|
||||
snippet let\n\
|
||||
let ${1} = ${2}\n\
|
||||
in ${3}\n\
|
||||
snippet where\n\
|
||||
where\n\
|
||||
${1:fn} = ${2:undefined}\n\
|
||||
";
|
||||
exports.scope = "haskell";
|
||||
define("ace/snippets/haskell.snippets",["require","exports","module"], function(require, exports, module){module.exports = "snippet lang\n\t{-# LANGUAGE ${1:OverloadedStrings} #-}\nsnippet info\n\t-- |\n\t-- Module : ${1:Module.Namespace}\n\t-- Copyright : ${2:Author} ${3:2011-2012}\n\t-- License : ${4:BSD3}\n\t--\n\t-- Maintainer : ${5:email@something.com}\n\t-- Stability : ${6:experimental}\n\t-- Portability : ${7:unknown}\n\t--\n\t-- ${8:Description}\n\t--\nsnippet import\n\timport ${1:Data.Text}\nsnippet import2\n\timport ${1:Data.Text} (${2:head})\nsnippet importq\n\timport qualified ${1:Data.Text} as ${2:T}\nsnippet inst\n\tinstance ${1:Monoid} ${2:Type} where\n\t\t${3}\nsnippet type\n\ttype ${1:Type} = ${2:Type}\nsnippet data\n\tdata ${1:Type} = ${2:$1} ${3:Int}\nsnippet newtype\n\tnewtype ${1:Type} = ${2:$1} ${3:Int}\nsnippet class\n\tclass ${1:Class} a where\n\t\t${2}\nsnippet module\n\tmodule `substitute(substitute(expand('%:r'), '[/\\\\]','.','g'),'^\\%(\\l*\\.\\)\\?','','')` (\n\t)\twhere\n\t`expand('%') =~ 'Main' ? \"\\n\\nmain = do\\n print \\\"hello world\\\"\" : \"\"`\n\nsnippet const\n\t${1:name} :: ${2:a}\n\t$1 = ${3:undefined}\nsnippet fn\n\t${1:fn} :: ${2:a} -> ${3:a}\n\t$1 ${4} = ${5:undefined}\nsnippet fn2\n\t${1:fn} :: ${2:a} -> ${3:a} -> ${4:a}\n\t$1 ${5} = ${6:undefined}\nsnippet ap\n\t${1:map} ${2:fn} ${3:list}\nsnippet do\n\tdo\n\t\t\nsnippet \u03BB\n\t\\${1:x} -> ${2}\nsnippet \\\n\t\\${1:x} -> ${2}\nsnippet <-\n\t${1:a} <- ${2:m a}\nsnippet \u2190\n\t${1:a} <- ${2:m a}\nsnippet ->\n\t${1:m a} -> ${2:a}\nsnippet \u2192\n\t${1:m a} -> ${2:a}\nsnippet tup\n\t(${1:a}, ${2:b})\nsnippet tup2\n\t(${1:a}, ${2:b}, ${3:c})\nsnippet tup3\n\t(${1:a}, ${2:b}, ${3:c}, ${4:d})\nsnippet rec\n\t${1:Record} { ${2:recFieldA} = ${3:undefined}\n\t\t\t\t, ${4:recFieldB} = ${5:undefined}\n\t\t\t\t}\nsnippet case\n\tcase ${1:something} of\n\t\t${2} -> ${3}\nsnippet let\n\tlet ${1} = ${2}\n\tin ${3}\nsnippet where\n\twhere\n\t\t${1:fn} = ${2:undefined}\n";
|
||||
|
||||
});
|
||||
|
||||
define("ace/snippets/haskell",["require","exports","module","ace/snippets/haskell.snippets"], function(require, exports, module){"use strict";
|
||||
exports.snippetText = require("./haskell.snippets");
|
||||
exports.scope = "haskell";
|
||||
|
||||
}); (function() {
|
||||
window.require(["ace/snippets/haskell"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
Reference in New Issue
Block a user