mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-19 11:25:46 +01:00
Death to E4X and stuff.
This commit is contained in:
@@ -676,13 +676,13 @@ var IO = Module("io", {
|
||||
}
|
||||
|
||||
rtItems.ftdetect.template = // {{{
|
||||
<![CDATA[" Vim filetype detection file
|
||||
literal(/*" Vim filetype detection file
|
||||
<header>
|
||||
|
||||
au BufNewFile,BufRead *<name>rc*,*.<fileext> set filetype=<name>
|
||||
]]>;//}}}
|
||||
*/);//}}}
|
||||
rtItems.ftplugin.template = // {{{
|
||||
<![CDATA[" Vim filetype plugin file
|
||||
literal(/*" Vim filetype plugin file
|
||||
<header>
|
||||
|
||||
if exists("b:did_ftplugin")
|
||||
@@ -707,9 +707,9 @@ endif
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
]]>;//}}}
|
||||
*/);//}}}
|
||||
rtItems.syntax.template = // {{{
|
||||
<![CDATA[" Vim syntax file
|
||||
literal(/*" Vim syntax file
|
||||
<header>
|
||||
|
||||
if exists("b:current_syntax")
|
||||
@@ -788,7 +788,7 @@ let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
||||
" vim: tw=130 et ts=8 sts=4 sw=4:
|
||||
]]>;//}}}
|
||||
*/);//}}}
|
||||
|
||||
const { options } = modules;
|
||||
|
||||
@@ -1041,7 +1041,7 @@ unlet s:cpo_save
|
||||
};
|
||||
|
||||
completion.addUrlCompleter("file", "Local files", function (context, full) {
|
||||
let match = util.regexp(<![CDATA[
|
||||
let match = util.regexp(literal(/*
|
||||
^
|
||||
(?P<prefix>
|
||||
(?P<proto>
|
||||
@@ -1052,7 +1052,7 @@ unlet s:cpo_save
|
||||
)
|
||||
(?P<path> \/[^\/]* )?
|
||||
$
|
||||
]]>, "x").exec(context.filter);
|
||||
*/), "x").exec(context.filter);
|
||||
if (match) {
|
||||
if (!match.path) {
|
||||
context.key = match.proto;
|
||||
|
||||
Reference in New Issue
Block a user