Permalink
...
daveagp
commented on
Comparing changes
Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Choose a Base Repository
codemirror/CodeMirror
Benvie/CodeMirror
BrendonSled/CodeMirror2
Brijen/CodeMirror2
CodePen/CodeMirrorEditor
DarioGT/CodeMirror2
GerHobbelt/CodeMirror2
GordonSmith/CodeMirror2
Gozala/CodeMirror
Kodowa/CodeMirror
MariusKarthaus/CodeMirror2
MichaelaIvanova/CodeMirror
NV/CodeMirror
Naatan/CodeMirror2
Nahrae/CodeMirror
Necrathex/CodeMirror2
NikhilS/CodeMirror2
Page-/CodeMirror2
ProPuke/CodeMirror2
Raynes/CodeMirror2
SimonWaldherrArchive/CodeMirror2
Suor/CodeMirror2
TheColorRed/CodeMirror2
TypedLambda/CodeMirror2
Visheshk/CodeMirror2
WebKutir/CodeMirror2
WolfgangKluge/CodeMirror2
achicu/CodeMirror2
adam-singer/CodeMirror2
adanlobato/CodeMirror2
adobe/CodeMirror2
aklaswad/CodeMirror2
alexey-k/CodeMirror2
amphro/CodeMirror2
ananyasen/CodeMirror2
andrecharland/CodeMirror2
ankit/CodeMirror2
areos/CodeMirror2
atul-bhouraskar/CodeMirror2
ayachi/CodeMirror2
benbunk/CodeMirror2
bengillies/CodeMirror2
billortell/CodeMirror2
blackvladimir/CodeMirror2
bnowel/CodeMirror2
borawjm/CodeMirror2
botelho/CodeMirror
bridger/CodeMirror2
bsletten/CodeMirror2
capacman/CodeMirror2
captn3m0/CodeMirror2
cethap/CodeMirror2
charles-cai/CodeMirror2
charlieroberts/CodeMirror2
chendeng/CodeMirror2
chris-morgan/CodeMirror2
cicloid/CodeMirror2
ciptard/CodeMirror2
clarkbox/CodeMirror2
clemos/CodeMirror2
cliffkoh/CodeMirror2
cloudgiant/CodeMirror2
codio/CodeMirror
contributed/CodeMirror2
dbja/CodeMirror2
deebugger/CodeMirror2
djiang/CodeMirror2
durdn/CodeMirror2
dxw/CodeMirror2
dynosmurf/CodeMirror2
dyoo/CodeMirror2
ekhaled/CodeMirror2
enjalot/CodeMirror2
espadrine/CodeMirror
est/CodeMirror2
existdissolve/CodeMirror2
fbuchinger/CodeMirror2
felmoon/CodeMirror2
femhub/CodeMirror2
flyabroad/CodeMirror2
fourchette/CodeMirror2
fpo123/CodeMirror2
fprochazka/CodeMirror2
frawa/TestCodeMirror2
fzzr-/CodeMirror2
galambalazs/CodeMirror2
gavriguy/CodeMirror2
gbv/CodeMirror2
greengiant/CodeMirror2
guidokessels/CodeMirror2
gzdw/CodeMirror2
hans/CodeMirror2
hanxianlong/CodeMirror2
ibdknox/CodeMirror
idflood/CodeMirror2
infinnity/CodeMirror2
ingrid/CodeMirror2
j6mes/CodeMirror2
jankeromnes/CodeMirror
jasondavis/CodeMirror2
jbrinkman/CodeMirror2
jem/CodeMirror2
jenlure/CodeMirror2
jimmyoneill/CodeMirror2
jmwong/CodeMirror2
jongalloway/CodeMirror2
jots/CodeMirror2
joycse06/CodeMirror2
jurisv/CodeMirror2
kaniga/CodeMirror2
kasei/CodeMirror2
kjetilk/CodeMirror2
koide/CodeMirror2
koops/CodeMirror2
krockot/CodeMirror2
larscwallin/CodeMirror2
leafo/CodeMirror2
lgastako/CodeMirror2
lm/CodeMirror2
lopuhin/CodeMirror2
luojun/CodeMirror2
luqui/CodeMirror2
maks/CodeMirror2
mamboer/CodeMirror2
manyanlong/CodeMirror2
massemanet/CodeMirror
maxkirsch/CodeMirror2
mb-crt/CodeMirror2
mbarkhau/CodeMirror2
mbrevoort/CodeMirror2-xquery
mcelrath/CodeMirror2
metzen/CodeMirror2
michalliu/CodeMirror2
michelemostarda/CodeMirror2
mimecuvalo/CodeMirror2
misfo/CodeMirror2
mixonic/CodeMirror
moon2l/CodeMirror2
movabletype/CodeMirror2
mozes/CodeMirror2
mwmessin/CodeMirror2
mwpark/CodeMirror2
mzero/CodeMirror2
nathansobo/CodeMirror2
nazriel/CodeMirror2
ndebeiss/CodeMirror2
nguillaumin/CodeMirror2
nickmoorman/CodeMirror2
nitrous-io-zz/CodeMirror
njx/CodeMirror
nlwillia/CodeMirror2
nvdnkpr/CodeMirror2
onkis/CodeMirror2
oozou/CodeMirror2
openube/CodeMirror2
oxling/CodeMirror2
panchalmukundak/CodeMirror2
pavelfeldman/CodeMirror
peteguhl/CodeMirror2
peterarmstrong/CodeMirror2
peterkroon/CodeMirror2
pombredanne/CodeMirror2
pplaquette/CodeMirror2
purplecabbage/CodeMirror2
rascalmicro/CodeMirror2
rduenasf/CodeMirror2
robermorales/CodeMirror2
robhawkes/CodeMirror2
samuela/CodeMirror2
satchit/CodeMirror2
seanmcgary/CodeMirror2
siefkenj/CodeMirror2
simoneau/CodeMirror2
skirmish/CodeMirror2
skoon/CodeMirror2
sourcelair/CodeMirror
sparkartgroup-archive/CodeMirror2
strax/CodeMirror2
syntagmatic/CodeMirror2
tarr11/CodeMirror2
timelyportfolio/codemirrorR
tpiccinini/CodeMirror2
treeform/CodeMirror2
ttscoff/CodeMirror2
tvoliter/CodeMirror2
uboness/CodeMirror2
utahguy/CodeMirror2
vegastexteditor/CodeMirror2
vestimir/CodeMirror2
vmx/CodeMirror2
vodori/CodeMirror2
waywardmonkeys/CodeMirror
whalefood/CodeMirror2
wmchristie/CodeMirror2
wwwlicious/CodeMirror2
xsocher/CodeMirror2
youngrok/CodeMirror2
zarazi/CodeMirror2
zires/CodeMirror2
zptcsoft/CodeMirror
Nothing to show
Choose a base branch
Nothing to show
Choose a Head Repository
codemirror/CodeMirror
Benvie/CodeMirror
BrendonSled/CodeMirror2
Brijen/CodeMirror2
CodePen/CodeMirrorEditor
DarioGT/CodeMirror2
GerHobbelt/CodeMirror2
GordonSmith/CodeMirror2
Gozala/CodeMirror
Kodowa/CodeMirror
MariusKarthaus/CodeMirror2
MichaelaIvanova/CodeMirror
NV/CodeMirror
Naatan/CodeMirror2
Nahrae/CodeMirror
Necrathex/CodeMirror2
NikhilS/CodeMirror2
Page-/CodeMirror2
ProPuke/CodeMirror2
Raynes/CodeMirror2
SimonWaldherrArchive/CodeMirror2
Suor/CodeMirror2
TheColorRed/CodeMirror2
TypedLambda/CodeMirror2
Visheshk/CodeMirror2
WebKutir/CodeMirror2
WolfgangKluge/CodeMirror2
achicu/CodeMirror2
adam-singer/CodeMirror2
adanlobato/CodeMirror2
adobe/CodeMirror2
aklaswad/CodeMirror2
alexey-k/CodeMirror2
amphro/CodeMirror2
ananyasen/CodeMirror2
andrecharland/CodeMirror2
ankit/CodeMirror2
areos/CodeMirror2
atul-bhouraskar/CodeMirror2
ayachi/CodeMirror2
benbunk/CodeMirror2
bengillies/CodeMirror2
billortell/CodeMirror2
blackvladimir/CodeMirror2
bnowel/CodeMirror2
borawjm/CodeMirror2
botelho/CodeMirror
bridger/CodeMirror2
bsletten/CodeMirror2
capacman/CodeMirror2
captn3m0/CodeMirror2
cethap/CodeMirror2
charles-cai/CodeMirror2
charlieroberts/CodeMirror2
chendeng/CodeMirror2
chris-morgan/CodeMirror2
cicloid/CodeMirror2
ciptard/CodeMirror2
clarkbox/CodeMirror2
clemos/CodeMirror2
cliffkoh/CodeMirror2
cloudgiant/CodeMirror2
codio/CodeMirror
contributed/CodeMirror2
dbja/CodeMirror2
deebugger/CodeMirror2
djiang/CodeMirror2
durdn/CodeMirror2
dxw/CodeMirror2
dynosmurf/CodeMirror2
dyoo/CodeMirror2
ekhaled/CodeMirror2
enjalot/CodeMirror2
espadrine/CodeMirror
est/CodeMirror2
existdissolve/CodeMirror2
fbuchinger/CodeMirror2
felmoon/CodeMirror2
femhub/CodeMirror2
flyabroad/CodeMirror2
fourchette/CodeMirror2
fpo123/CodeMirror2
fprochazka/CodeMirror2
frawa/TestCodeMirror2
fzzr-/CodeMirror2
galambalazs/CodeMirror2
gavriguy/CodeMirror2
gbv/CodeMirror2
greengiant/CodeMirror2
guidokessels/CodeMirror2
gzdw/CodeMirror2
hans/CodeMirror2
hanxianlong/CodeMirror2
ibdknox/CodeMirror
idflood/CodeMirror2
infinnity/CodeMirror2
ingrid/CodeMirror2
j6mes/CodeMirror2
jankeromnes/CodeMirror
jasondavis/CodeMirror2
jbrinkman/CodeMirror2
jem/CodeMirror2
jenlure/CodeMirror2
jimmyoneill/CodeMirror2
jmwong/CodeMirror2
jongalloway/CodeMirror2
jots/CodeMirror2
joycse06/CodeMirror2
jurisv/CodeMirror2
kaniga/CodeMirror2
kasei/CodeMirror2
kjetilk/CodeMirror2
koide/CodeMirror2
koops/CodeMirror2
krockot/CodeMirror2
larscwallin/CodeMirror2
leafo/CodeMirror2
lgastako/CodeMirror2
lm/CodeMirror2
lopuhin/CodeMirror2
luojun/CodeMirror2
luqui/CodeMirror2
maks/CodeMirror2
mamboer/CodeMirror2
manyanlong/CodeMirror2
massemanet/CodeMirror
maxkirsch/CodeMirror2
mb-crt/CodeMirror2
mbarkhau/CodeMirror2
mbrevoort/CodeMirror2-xquery
mcelrath/CodeMirror2
metzen/CodeMirror2
michalliu/CodeMirror2
michelemostarda/CodeMirror2
mimecuvalo/CodeMirror2
misfo/CodeMirror2
mixonic/CodeMirror
moon2l/CodeMirror2
movabletype/CodeMirror2
mozes/CodeMirror2
mwmessin/CodeMirror2
mwpark/CodeMirror2
mzero/CodeMirror2
nathansobo/CodeMirror2
nazriel/CodeMirror2
ndebeiss/CodeMirror2
nguillaumin/CodeMirror2
nickmoorman/CodeMirror2
nitrous-io-zz/CodeMirror
njx/CodeMirror
nlwillia/CodeMirror2
nvdnkpr/CodeMirror2
onkis/CodeMirror2
oozou/CodeMirror2
openube/CodeMirror2
oxling/CodeMirror2
panchalmukundak/CodeMirror2
pavelfeldman/CodeMirror
peteguhl/CodeMirror2
peterarmstrong/CodeMirror2
peterkroon/CodeMirror2
pombredanne/CodeMirror2
pplaquette/CodeMirror2
purplecabbage/CodeMirror2
rascalmicro/CodeMirror2
rduenasf/CodeMirror2
robermorales/CodeMirror2
robhawkes/CodeMirror2
samuela/CodeMirror2
satchit/CodeMirror2
seanmcgary/CodeMirror2
siefkenj/CodeMirror2
simoneau/CodeMirror2
skirmish/CodeMirror2
skoon/CodeMirror2
sourcelair/CodeMirror
sparkartgroup-archive/CodeMirror2
strax/CodeMirror2
syntagmatic/CodeMirror2
tarr11/CodeMirror2
timelyportfolio/codemirrorR
tpiccinini/CodeMirror2
treeform/CodeMirror2
ttscoff/CodeMirror2
tvoliter/CodeMirror2
uboness/CodeMirror2
utahguy/CodeMirror2
vegastexteditor/CodeMirror2
vestimir/CodeMirror2
vmx/CodeMirror2
vodori/CodeMirror2
waywardmonkeys/CodeMirror
whalefood/CodeMirror2
wmchristie/CodeMirror2
wwwlicious/CodeMirror2
xsocher/CodeMirror2
youngrok/CodeMirror2
zarazi/CodeMirror2
zires/CodeMirror2
zptcsoft/CodeMirror
Nothing to show
Choose a head branch
Nothing to show
13
contributors
Commits on Apr 22, 2014
|
|
marijnh |
Bump version number post-4.1
|
295c1af
|
|||
|
|
marijnh |
[livescript mode] Fix empty tokens, clean up style
Remove .ls source file |
ce4a4d8
|
|||
|
|
marijnh |
Register select-all detection timeout per editor
So that a subsequent context menu handler can cancel it Issue #2491 |
513fba0
|
|||
|
|
marijnh |
More proper prevention of select-all race condition
Issue #2491 |
6ab1283
|
Commits on Apr 23, 2014
Commits on Apr 24, 2014
Commits on Apr 25, 2014
|
|
marijnh |
Make sure gutter is redrawn when a document is shifted
Issue #2498 |
237b5f3
|
|||
|
|
marijnh |
[compression helper] Use CodeMirror for code field
Dog food, and all that. |
a3ae0e9
|
|||
|
|
marijnh |
[runmode addon] Pass state to blankLine
Issue #2502 |
91e351e
|
|||
|
|
marijnh |
[foldcode addon] preventDefault clicks on widgets
So that the click doesn't kill editor focus. Closes #2505 |
350e8b7
|
Commits on Apr 28, 2014
|
|
as3boyan + marijnh |
[haxe mode] Line comments for Hxml
|
b614431
|
|||
|
|
cben + mightyguava |
[vim]: IE8 fixes.
- avoid array .indexOf - fixes % key and non-pcre searches. - avoid array .map - fixes a couple of non-running tests. |
de6fd11
|
|||
|
|
marijnh |
[shell mode] Fix empty token bug
Issue #2506 |
b96e1ae
|
|||
|
|
mightyguava |
[vim] Fix bracket matching off-by-one
|
1e42d9a
|
Commits on Apr 29, 2014
|
|
marijnh |
Use a different approach to handling window events
One that's less scary, and allows immediate garbage collection (rather than waiting up to 500 ms). Does not work in IE8, though. Also shows editors as blurred when the window loses focus. |
d320196
|
|||
|
|
marijnh |
[css mode] Fix empty token bug
Issue #2516 |
1f2bc90
|
|||
|
|
marijnh |
Loosen restriction on empty tokens
It is turning into a major headache, since apparently a lot of modes are written with the assumption that empty tokens are okay. Closes #2517 |
2c60a28
|
Commits on Apr 30, 2014
Commits on May 02, 2014
Commits on May 03, 2014
|
|
marijnh |
Remove diff_match_patch file from distribution, link cdnjs instead
Issue #2529 |
44efdb4
|
Commits on May 05, 2014
Commits on May 06, 2014
|
|
marijnh |
[match-highlighter addon] Use primary selection, not first one
Closes #2539 |
0c3da1a
|
|||
|
|
ppasupat + marijnh |
[markdown mode] Fix code block styling after indented line
|
1adf618
|
|||
|
|
ppasupat + marijnh |
[markdown mode] Fix XML styling in Markdown mode
Fix the condition when XML styling should be invoked. Also add test cases. |
90650c6
|
|||
|
|
marijnh |
[dylan mode] Add module loading shim
Closes #2533 |
60ab165
|
|||
|
|
binny + mightyguava |
[vim] Visual paste operation with unit tests
|
6abb339
|
|||
|
|
binny + mightyguava |
[vim] support for append action command in visual mode added
|
6db5ec2
|
|||
|
|
binny + mightyguava |
[vim] Resolve upward selection bug
|
546eb6c
|
Commits on May 08, 2014
|
|
marijnh |
Abort wheel delta measurement when scrolling explicitly
Issue #2537 |
41a29b0
|
Commits on May 09, 2014
|
|
marijnh |
[sublime keybindings] Don't include zero-char selection bottoms in sw…
…apLine* Issue #2542 |
0efe7a5
|
|||
|
|
marijnh |
[javascript-hint addon] Support an option that disables use of the cu…
…rrent global scope |
fea3191
|
|||
|
|
bemjb + marijnh |
[css mode] Add more CSS Shapes properties
Add shape-image-threshold and shape-margin. |
a6faf98
|
|||
|
|
marijnh |
[real-world uses] Add Better Text Viewer and CrossUI
|
81aeea3
|
|||
|
|
marijnh |
Add license and version comment to all scripts
|
01e844f
|
|||
|
|
marijnh |
Fix bug in release script
|
01fb285
|
Commits on May 10, 2014
|
|
as3boyan + marijnh |
[show-hint addon] Fix a typo
|
a5b79b5
|
Commits on May 12, 2014
Commits on May 13, 2014
Commits on May 15, 2014
|
|
marijnh |
[tern addon] Allow hiding and deleting docs by identity, not just name
|
714954d
|
Commits on May 16, 2014
|
|
mightyguava |
[vim] Add vim keypress and command done events
|
c6e7cd1
|
Commits on May 17, 2014
Commits on May 18, 2014
|
|
marijnh |
In context menu handler, keep selForContextMenu up to date
So that the added zero-width space doesn't confuse readinput, even if some other event handler messed with the selection in the meantime. Issue #2566 |
08b0256
|
Commits on May 19, 2014
|
|
marijnh |
Preserve class name added by renderLine event handler
Issue #2564 |
24a6c79
|
|||
|
|
marijnh |
Add a bias option for selection operations
Issue #2560 |
eb64d42
|
|||
|
|
marijnh |
[comment addon] Adjust docs for padding
|
2e89708
|
|||
|
|
marijnh |
Remove version numbers from script headers again
Bumping them for every release just adds too much git noise and history blowup. |
fc41788
|
|||
|
|
marijnh |
Mark release 4.2
|
7e666ec
|
Unified
Split
Showing
with
2,396 additions
and 1,023 deletions.
- +5 −0 AUTHORS
- +3 −0 addon/comment/comment.js
- +3 −0 addon/comment/continuecomment.js
- +3 −0 addon/dialog/dialog.js
- +3 −0 addon/display/fullscreen.js
- +3 −0 addon/display/placeholder.js
- +16 −6 addon/display/rulers.js
- +3 −0 addon/edit/closebrackets.js
- +28 −3 addon/edit/closetag.js
- +3 −0 addon/edit/continuelist.js
- +3 −0 addon/edit/matchbrackets.js
- +3 −0 addon/edit/matchtags.js
- +3 −0 addon/edit/trailingspace.js
- +3 −0 addon/fold/brace-fold.js
- +3 −0 addon/fold/comment-fold.js
- +36 −8 addon/fold/foldcode.js
- +3 −0 addon/fold/foldgutter.js
- +3 −0 addon/fold/indent-fold.js
- +3 −0 addon/fold/markdown-fold.js
- +4 −1 addon/fold/xml-fold.js
- +3 −0 addon/hint/anyword-hint.js
- +3 −0 addon/hint/css-hint.js
- +3 −0 addon/hint/html-hint.js
- +7 −2 addon/hint/javascript-hint.js
- +3 −0 addon/hint/python-hint.js
- +74 −36 addon/hint/show-hint.js
- +3 −0 addon/hint/sql-hint.js
- +3 −0 addon/hint/xml-hint.js
- +3 −0 addon/lint/coffeescript-lint.js
- +3 −0 addon/lint/css-lint.js
- +3 −0 addon/lint/javascript-lint.js
- +3 −0 addon/lint/json-lint.js
- +3 −0 addon/lint/lint.js
- +3 −0 addon/lint/yaml-lint.js
- +0 −50 addon/merge/dep/diff_match_patch.js
- +3 −0 addon/merge/merge.js
- +3 −0 addon/mode/loadmode.js
- +3 −0 addon/mode/multiplex.js
- +3 −0 addon/mode/multiplex_test.js
- +12 −3 addon/mode/overlay.js
- +3 −0 addon/runmode/colorize.js
- +4 −1 addon/runmode/runmode-standalone.js
- +4 −1 addon/runmode/runmode.js
- +4 −1 addon/runmode/runmode.node.js
- +3 −0 addon/scroll/scrollpastend.js
- +6 −2 addon/search/match-highlighter.js
- +3 −0 addon/search/search.js
- +3 −0 addon/search/searchcursor.js
- +3 −0 addon/selection/active-line.js
- +3 −0 addon/selection/mark-selection.js
- +1 −0 addon/tern/tern.css
- +23 −16 addon/tern/tern.js
- +3 −0 addon/tern/worker.js
- +3 −0 addon/wrap/hardwrap.js
- +1 −1 demo/anywordhint.html
- +1 −1 demo/folding.html
- +1 −1 demo/merge.html
- +2 −7 demo/rulers.html
- +2 −0 demo/theme.html
- +11 −0 demo/vim.html
- +4 −5 demo/xmlcomplete.html
- +40 −3 doc/compress.html
- +35 −22 doc/manual.html
- +5 −0 doc/realworld.html
- +17 −0 doc/releases.html
- +1 −1 index.html
- +4 −7 keymap/emacs.js
- +11 −8 keymap/sublime.js
- +92 −33 keymap/vim.js
- +133 −58 lib/codemirror.js
- +3 −0 mode/apl/apl.js
- +3 −0 mode/asterisk/asterisk.js
- +3 −0 mode/clike/clike.js
- +3 −0 mode/clojure/clojure.js
- +3 −0 mode/cobol/cobol.js
- +3 −0 mode/coffeescript/coffeescript.js
- +3 −0 mode/commonlisp/commonlisp.js
- +13 −14 mode/css/css.js
- +3 −0 mode/css/less_test.js
- +3 −0 mode/css/scss_test.js
- +13 −0 mode/css/test.js
- +146 −0 mode/cypher/cypher.js
- +63 −0 mode/cypher/index.html
- +3 −0 mode/d/d.js
- +3 −0 mode/diff/diff.js
- +3 −0 mode/django/django.js
- +3 −0 mode/dtd/dtd.js
- +15 −0 mode/dylan/dylan.js
- +3 −0 mode/ecl/ecl.js
- +3 −0 mode/eiffel/eiffel.js
- +3 −0 mode/erlang/erlang.js
- +3 −0 mode/fortran/fortran.js
- +3 −0 mode/gas/gas.js
- +9 −1 mode/gfm/gfm.js
- +24 −0 mode/gfm/test.js
- +3 −0 mode/gherkin/gherkin.js
- +3 −0 mode/go/go.js
- +3 −0 mode/groovy/groovy.js
- +3 −0 mode/haml/haml.js
- +3 −0 mode/haml/test.js
- +3 −0 mode/haskell/haskell.js
- +5 −1 mode/haxe/haxe.js
- +3 −0 mode/htmlembedded/htmlembedded.js
- +3 −0 mode/htmlmixed/htmlmixed.js
- +3 −0 mode/http/http.js
- +1 −0 mode/index.html
- +6 −2 mode/jade/index.html
- +569 −81 mode/jade/jade.js
- +5 −0 mode/javascript/javascript.js
- +3 −0 mode/javascript/test.js
- +3 −0 mode/jinja2/jinja2.js
- +3 −0 mode/julia/julia.js
- +17 −17 mode/livescript/livescript.js
- +0 −266 mode/livescript/livescript.ls
- +3 −0 mode/lua/lua.js
- +5 −3 mode/markdown/markdown.js
- +30 −0 mode/markdown/test.js
- +4 −0 mode/meta.js
- +3 −0 mode/mirc/mirc.js
- +3 −0 mode/mllike/mllike.js
- +3 −0 mode/nginx/nginx.js
- +3 −0 mode/ntriples/ntriples.js
- +3 −0 mode/octave/octave.js
- +3 −0 mode/pascal/pascal.js
- +3 −0 mode/pegjs/pegjs.js
- +5 −0 mode/perl/perl.js
- +5 −2 mode/php/php.js
- +3 −0 mode/php/test.js
- +3 −0 mode/pig/pig.js
- +3 −0 mode/properties/properties.js
- +3 −0 mode/puppet/puppet.js
- +284 −328 mode/python/python.js
- +3 −0 mode/q/q.js
- +3 −0 mode/r/r.js
- +3 −0 mode/rpm/rpm.js
- +3 −0 mode/rst/rst.js
- +3 −0 mode/ruby/ruby.js
- +3 −0 mode/ruby/test.js
- +3 −0 mode/rust/rust.js
- +3 −0 mode/sass/sass.js
- +3 −0 mode/scheme/scheme.js
- +9 −2 mode/shell/shell.js
- +58 −0 mode/shell/test.js
- +3 −0 mode/sieve/sieve.js
- +3 −0 mode/smalltalk/smalltalk.js
- +3 −0 mode/smarty/smarty.js
- +3 −0 mode/smartymixed/smartymixed.js
- +3 −0 mode/solr/solr.js
- +3 −0 mode/sparql/sparql.js
- +3 −0 mode/sql/sql.js
- +3 −0 mode/stex/stex.js
- +3 −0 mode/stex/test.js
- +3 −0 mode/tcl/tcl.js
- +3 −0 mode/tiddlywiki/tiddlywiki.js
- +3 −0 mode/tiki/tiki.js
- +3 −0 mode/toml/toml.js
- +3 −0 mode/turtle/turtle.js
- +3 −0 mode/vb/vb.js
- +3 −0 mode/vbscript/vbscript.js
- +3 −0 mode/velocity/velocity.js
- +3 −0 mode/verilog/test.js
- +3 −0 mode/verilog/verilog.js
- +3 −0 mode/xml/test.js
- +4 −1 mode/xml/xml.js
- +3 −0 mode/xquery/test.js
- +3 −0 mode/xquery/xquery.js
- +3 −0 mode/yaml/yaml.js
- +3 −0 mode/z80/z80.js
- +1 −1 package.json
- +4 −4 test/emacs_test.js
- +2 −0 test/index.html
- +6 −1 test/lint/lint.js
- +13 −0 test/mode_test.css
- +42 −20 test/mode_test.js
- +6 −0 test/sublime_test.js
- +13 −0 test/test.js
- +53 −2 test/vim_test.js
- +40 −0 theme/neo.css
View
5
AUTHORS
| @@ -26,6 +26,7 @@ Amy | ||
| Ananya Sen | ||
| anaran | ||
| AndersMad | ||
| +Anders Nawroth | ||
| Anderson Mesquita | ||
| Andre von Houck | ||
| Andrey Lushnikov | ||
| @@ -44,6 +45,7 @@ AtomicPages LLC | ||
| Atul Bhouraskar | ||
| Aurelian Oancea | ||
| Bastian Müller | ||
| +Bem Jones-Bey | ||
| benbro | ||
| Beni Cherniavsky-Paskin | ||
| Benjamin DeCoste | ||
| @@ -73,6 +75,7 @@ CodeAnimal | ||
| ComFreek | ||
| Curtis Gagliardi | ||
| dagsta | ||
| +daines | ||
| Dan Heberden | ||
| Daniel, Dao Quang Minh | ||
| Daniel Faust | ||
| @@ -82,6 +85,7 @@ Daniel Neel | ||
| Daniel Parnell | ||
| Danny Yoo | ||
| Darius Roberts | ||
| +Dave Myers | ||
| David Mignot | ||
| David Pathakjee | ||
| deebugger | ||
| @@ -263,6 +267,7 @@ Nikolay Kostov | ||
| nlwillia | ||
| pablo | ||
| Page | ||
| +Panupong Pasupat | ||
| paris | ||
| Patil Arpith | ||
| Patrick Strawderman | ||
View
3
addon/comment/comment.js
| @@ -1,3 +1,6 @@ | ||
| +// CodeMirror, copyright (c) by Marijn Haverbeke and others | ||
| +// Distributed under an MIT license: http://codemirror.net/LICENSE | ||
| + | ||
| (function(mod) { | ||
| if (typeof exports == "object" && typeof module == "object") // CommonJS | ||
| mod(require("../../lib/codemirror")); | ||
View
3
addon/comment/continuecomment.js
| @@ -1,3 +1,6 @@ | ||
| +// CodeMirror, copyright (c) by Marijn Haverbeke and others | ||
| +// Distributed under an MIT license: http://codemirror.net/LICENSE | ||
| + | ||
| (function(mod) { | ||
| if (typeof exports == "object" && typeof module == "object") // CommonJS | ||
| mod(require("../../lib/codemirror")); | ||
View
3
addon/dialog/dialog.js
| @@ -1,3 +1,6 @@ | ||
| +// CodeMirror, copyright (c) by Marijn Haverbeke and others | ||
| +// Distributed under an MIT license: http://codemirror.net/LICENSE | ||
| + | ||
| // Open simple dialogs on top of an editor. Relies on dialog.css. | ||
| (function(mod) { | ||
View
3
addon/display/fullscreen.js
| @@ -1,3 +1,6 @@ | ||
| +// CodeMirror, copyright (c) by Marijn Haverbeke and others | ||
| +// Distributed under an MIT license: http://codemirror.net/LICENSE | ||
| + | ||
| (function(mod) { | ||
| if (typeof exports == "object" && typeof module == "object") // CommonJS | ||
| mod(require("../../lib/codemirror")); | ||
View
3
addon/display/placeholder.js
| @@ -1,3 +1,6 @@ | ||
| +// CodeMirror, copyright (c) by Marijn Haverbeke and others | ||
| +// Distributed under an MIT license: http://codemirror.net/LICENSE | ||
| + | ||
| (function(mod) { | ||
| if (typeof exports == "object" && typeof module == "object") // CommonJS | ||
| mod(require("../../lib/codemirror")); | ||
View
22
addon/display/rulers.js
| @@ -1,3 +1,6 @@ | ||
| +// CodeMirror, copyright (c) by Marijn Haverbeke and others | ||
| +// Distributed under an MIT license: http://codemirror.net/LICENSE | ||
| + | ||
| (function(mod) { | ||
| if (typeof exports == "object" && typeof module == "object") // CommonJS | ||
| mod(require("../../lib/codemirror")); | ||
| @@ -34,15 +37,22 @@ | ||
| var minH = cm.display.scroller.offsetHeight + 30; | ||
| for (var i = 0; i < val.length; i++) { | ||
| var elt = document.createElement("div"); | ||
| - var col, cls = null; | ||
| - if (typeof val[i] == "number") { | ||
| - col = val[i]; | ||
| + elt.className = "CodeMirror-ruler"; | ||
| + var col, cls = null, conf = val[i]; | ||
| + if (typeof conf == "number") { | ||
| + col = conf; | ||
| } else { | ||
| - col = val[i].column; | ||
| + col = conf.column; | ||
| + if (conf.className) elt.className = " " + conf.className; | ||
| + if (conf.color) elt.style.borderColor = conf.color; | ||
| + if (conf.lineStyle) elt.style.borderLeftStyle = conf.lineStyle; | ||
| + if (conf.width) elt.style.borderLeftWidth = conf.width; | ||
| cls = val[i].className; | ||
| } | ||
| - elt.className = "CodeMirror-ruler" + (cls ? " " + cls : ""); | ||
| - elt.style.cssText = "left: " + (left + col * cw) + "px; top: -50px; bottom: -20px; min-height: " + minH + "px"; | ||
| + elt.style.left = (left + col * cw) + "px"; | ||
| + elt.style.top = "-50px"; | ||
| + elt.style.bottom = "-20px"; | ||
| + elt.style.minHeight = minH + "px"; | ||
| cm.display.lineSpace.insertBefore(elt, cm.display.cursorDiv); | ||
| } | ||
| } | ||
View
3
addon/edit/closebrackets.js
| @@ -1,3 +1,6 @@ | ||
| +// CodeMirror, copyright (c) by Marijn Haverbeke and others | ||
| +// Distributed under an MIT license: http://codemirror.net/LICENSE | ||
| + | ||
| (function(mod) { | ||
| if (typeof exports == "object" && typeof module == "object") // CommonJS | ||
| mod(require("../../lib/codemirror")); | ||
View
31
addon/edit/closetag.js
| @@ -1,3 +1,6 @@ | ||
| +// CodeMirror, copyright (c) by Marijn Haverbeke and others | ||
| +// Distributed under an MIT license: http://codemirror.net/LICENSE | ||
| + | ||
| /** | ||
| * Tag-closer extension for CodeMirror. | ||
| * | ||
| @@ -55,6 +58,7 @@ | ||
| var pos = ranges[i].head, tok = cm.getTokenAt(pos); | ||
| var inner = CodeMirror.innerMode(cm.getMode(), tok.state), state = inner.state; | ||
| if (inner.mode.name != "xml" || !state.tagName) return CodeMirror.Pass; | ||
| + | ||
| var opt = cm.getOption("autoCloseTags"), html = inner.mode.configuration == "html"; | ||
| var dontCloseTags = (typeof opt == "object" && opt.dontCloseTags) || (html && htmlDontClose); | ||
| var indentTags = (typeof opt == "object" && opt.indentTags) || (html && htmlIndent); | ||
| @@ -68,8 +72,7 @@ | ||
| tok.type == "tag" && state.type == "closeTag" || | ||
| tok.string.indexOf("/") == (tok.string.length - 1) || // match something like <someTagName /> | ||
| dontCloseTags && indexOf(dontCloseTags, lowerTagName) > -1 || | ||
| - CodeMirror.scanForClosingTag && CodeMirror.scanForClosingTag(cm, pos, tagName, | ||
| - Math.min(cm.lastLine() + 1, pos.line + 50))) | ||
| + closingTagExists(cm, tagName, pos, state, true)) | ||
| return CodeMirror.Pass; | ||
| var indent = indentTags && indexOf(indentTags, lowerTagName) > -1; | ||
| @@ -100,7 +103,8 @@ | ||
| var inner = CodeMirror.innerMode(cm.getMode(), tok.state), state = inner.state; | ||
| if (tok.type == "string" || tok.string.charAt(0) != "<" || | ||
| tok.start != pos.ch - 1 || inner.mode.name != "xml" || | ||
| - !state.context || !state.context.tagName) | ||
| + !state.context || !state.context.tagName || | ||
| + closingTagExists(cm, state.context.tagName, pos, state)) | ||
| return CodeMirror.Pass; | ||
| replacements[i] = "/" + state.context.tagName + ">"; | ||
| } | ||
| @@ -113,4 +117,25 @@ | ||
| if (collection[i] == elt) return i; | ||
| return -1; | ||
| } | ||
| + | ||
| + // If xml-fold is loaded, we use its functionality to try and verify | ||
| + // whether a given tag is actually unclosed. | ||
| + function closingTagExists(cm, tagName, pos, state, newTag) { | ||
| + if (!CodeMirror.scanForClosingTag) return false; | ||
| + var end = Math.min(cm.lastLine() + 1, pos.line + 500); | ||
| + var nextClose = CodeMirror.scanForClosingTag(cm, pos, null, end); | ||
| + if (!nextClose || nextClose.tag != tagName) return false; | ||
| + var cx = state.context; | ||
| + // If the immediate wrapping context contains onCx instances of | ||
| + // the same tag, a closing tag only exists if there are at least | ||
| + // that many closing tags of that type following. | ||
| + for (var onCx = newTag ? 1 : 0; cx && cx.tagName == tagName; cx = cx.prev) ++onCx; | ||
| + pos = nextClose.to; | ||
| + for (var i = 1; i < onCx; i++) { | ||
| + var next = CodeMirror.scanForClosingTag(cm, pos, null, end); | ||
| + if (!next || next.tag != tagName) return false; | ||
| + pos = next.to; | ||
| + } | ||
| + return true; | ||
| + } | ||
| }); | ||
View
3
addon/edit/continuelist.js
| @@ -1,3 +1,6 @@ | ||
| +// CodeMirror, copyright (c) by Marijn Haverbeke and others | ||
| +// Distributed under an MIT license: http://codemirror.net/LICENSE | ||
| + | ||
| (function(mod) { | ||
| if (typeof exports == "object" && typeof module == "object") // CommonJS | ||
| mod(require("../../lib/codemirror")); | ||
View
3
addon/edit/matchbrackets.js
| @@ -1,3 +1,6 @@ | ||
| +// CodeMirror, copyright (c) by Marijn Haverbeke and others | ||
| +// Distributed under an MIT license: http://codemirror.net/LICENSE | ||
| + | ||
| (function(mod) { | ||
| if (typeof exports == "object" && typeof module == "object") // CommonJS | ||
| mod(require("../../lib/codemirror")); | ||
View
3
addon/edit/matchtags.js
| @@ -1,3 +1,6 @@ | ||
| +// CodeMirror, copyright (c) by Marijn Haverbeke and others | ||
| +// Distributed under an MIT license: http://codemirror.net/LICENSE | ||
| + | ||
| (function(mod) { | ||
| if (typeof exports == "object" && typeof module == "object") // CommonJS | ||
| mod(require("../../lib/codemirror"), require("../fold/xml-fold")); | ||
View
3
addon/edit/trailingspace.js
| @@ -1,3 +1,6 @@ | ||
| +// CodeMirror, copyright (c) by Marijn Haverbeke and others | ||
| +// Distributed under an MIT license: http://codemirror.net/LICENSE | ||
| + | ||
| (function(mod) { | ||
| if (typeof exports == "object" && typeof module == "object") // CommonJS | ||
| mod(require("../../lib/codemirror")); | ||
View
3
addon/fold/brace-fold.js
| @@ -1,3 +1,6 @@ | ||
| +// CodeMirror, copyright (c) by Marijn Haverbeke and others | ||
| +// Distributed under an MIT license: http://codemirror.net/LICENSE | ||
| + | ||
| (function(mod) { | ||
| if (typeof exports == "object" && typeof module == "object") // CommonJS | ||
| mod(require("../../lib/codemirror")); | ||
View
3
addon/fold/comment-fold.js
| @@ -1,3 +1,6 @@ | ||
| +// CodeMirror, copyright (c) by Marijn Haverbeke and others | ||
| +// Distributed under an MIT license: http://codemirror.net/LICENSE | ||
| + | ||
| (function(mod) { | ||
| if (typeof exports == "object" && typeof module == "object") // CommonJS | ||
| mod(require("../../lib/codemirror")); | ||
View
44
addon/fold/foldcode.js
| @@ -1,3 +1,6 @@ | ||
| +// CodeMirror, copyright (c) by Marijn Haverbeke and others | ||
| +// Distributed under an MIT license: http://codemirror.net/LICENSE | ||
| + | ||
| (function(mod) { | ||
| if (typeof exports == "object" && typeof module == "object") // CommonJS | ||
| mod(require("../../lib/codemirror")); | ||
| @@ -9,10 +12,14 @@ | ||
| "use strict"; | ||
| function doFold(cm, pos, options, force) { | ||
| - var finder = options && (options.call ? options : options.rangeFinder); | ||
| - if (!finder) finder = CodeMirror.fold.auto; | ||
| + if (options && options.call) { | ||
| + var finder = options; | ||
| + options = null; | ||
| + } else { | ||
| + var finder = getOption(cm, options, "rangeFinder"); | ||
| + } | ||
| if (typeof pos == "number") pos = CodeMirror.Pos(pos, 0); | ||
| - var minSize = options && options.minFoldSize || 0; | ||
| + var minSize = getOption(cm, options, "minFoldSize"); | ||
| function getRange(allowFolded) { | ||
| var range = finder(cm, pos); | ||
| @@ -29,14 +36,17 @@ | ||
| } | ||
| var range = getRange(true); | ||
| - if (options && options.scanUp) while (!range && pos.line > cm.firstLine()) { | ||
| + if (getOption(cm, options, "scanUp")) while (!range && pos.line > cm.firstLine()) { | ||
| pos = CodeMirror.Pos(pos.line - 1, 0); | ||
| range = getRange(false); | ||
| } | ||
| if (!range || range.cleared || force === "unfold") return; | ||
| - var myWidget = makeWidget(options); | ||
| - CodeMirror.on(myWidget, "mousedown", function() { myRange.clear(); }); | ||
| + var myWidget = makeWidget(cm, options); | ||
| + CodeMirror.on(myWidget, "mousedown", function(e) { | ||
| + myRange.clear(); | ||
| + CodeMirror.e_preventDefault(e); | ||
| + }); | ||
| var myRange = cm.markText(range.from, range.to, { | ||
| replacedWith: myWidget, | ||
| clearOnEnter: true, | ||
| @@ -48,8 +58,8 @@ | ||
| CodeMirror.signal(cm, "fold", cm, range.from, range.to); | ||
| } | ||
| - function makeWidget(options) { | ||
| - var widget = (options && options.widget) || "\u2194"; | ||
| + function makeWidget(cm, options) { | ||
| + var widget = getOption(cm, options, "widget"); | ||
| if (typeof widget == "string") { | ||
| var text = document.createTextNode(widget); | ||
| widget = document.createElement("span"); | ||
| @@ -114,4 +124,22 @@ | ||
| if (cur) return cur; | ||
| } | ||
| }); | ||
| + | ||
| + var defaultOptions = { | ||
| + rangeFinder: CodeMirror.fold.auto, | ||
| + widget: "\u2194", | ||
| + minFoldSize: 0, | ||
| + scanUp: false | ||
| + }; | ||
| + | ||
| + CodeMirror.defineOption("foldOptions", null); | ||
| + | ||
| + function getOption(cm, options, name) { | ||
| + if (options && options[name] !== undefined) | ||
| + return options[name]; | ||
| + var editorOptions = cm.options.foldOptions; | ||
| + if (editorOptions && editorOptions[name] !== undefined) | ||
| + return editorOptions[name]; | ||
| + return defaultOptions[name]; | ||
| + } | ||
| }); | ||
View
3
addon/fold/foldgutter.js
| @@ -1,3 +1,6 @@ | ||
| +// CodeMirror, copyright (c) by Marijn Haverbeke and others | ||
| +// Distributed under an MIT license: http://codemirror.net/LICENSE | ||
| + | ||
| (function(mod) { | ||
| if (typeof exports == "object" && typeof module == "object") // CommonJS | ||
| mod(require("../../lib/codemirror"), require("./foldcode")); | ||
View
3
addon/fold/indent-fold.js
| @@ -1,3 +1,6 @@ | ||
| +// CodeMirror, copyright (c) by Marijn Haverbeke and others | ||
| +// Distributed under an MIT license: http://codemirror.net/LICENSE | ||
| + | ||
| (function(mod) { | ||
| if (typeof exports == "object" && typeof module == "object") // CommonJS | ||
| mod(require("../../lib/codemirror")); | ||
View
3
addon/fold/markdown-fold.js
| @@ -1,3 +1,6 @@ | ||
| +// CodeMirror, copyright (c) by Marijn Haverbeke and others | ||
| +// Distributed under an MIT license: http://codemirror.net/LICENSE | ||
| + | ||
| (function(mod) { | ||
| if (typeof exports == "object" && typeof module == "object") // CommonJS | ||
| mod(require("../../lib/codemirror")); | ||
View
5
addon/fold/xml-fold.js
| @@ -1,3 +1,6 @@ | ||
| +// CodeMirror, copyright (c) by Marijn Haverbeke and others | ||
| +// Distributed under an MIT license: http://codemirror.net/LICENSE | ||
| + | ||
| (function(mod) { | ||
| if (typeof exports == "object" && typeof module == "object") // CommonJS | ||
| mod(require("../../lib/codemirror")); | ||
| @@ -173,6 +176,6 @@ | ||
| // Used by addon/edit/closetag.js | ||
| CodeMirror.scanForClosingTag = function(cm, pos, name, end) { | ||
| var iter = new Iter(cm, pos.line, pos.ch, end ? {from: 0, to: end} : null); | ||
| - return !!findMatchingClose(iter, name); | ||
| + return findMatchingClose(iter, name); | ||
| }; | ||
| }); | ||
View
3
addon/hint/anyword-hint.js
| @@ -1,3 +1,6 @@ | ||
| +// CodeMirror, copyright (c) by Marijn Haverbeke and others | ||
| +// Distributed under an MIT license: http://codemirror.net/LICENSE | ||
| + | ||
| (function(mod) { | ||
| if (typeof exports == "object" && typeof module == "object") // CommonJS | ||
| mod(require("../../lib/codemirror")); | ||
View
3
addon/hint/css-hint.js
| @@ -1,3 +1,6 @@ | ||
| +// CodeMirror, copyright (c) by Marijn Haverbeke and others | ||
| +// Distributed under an MIT license: http://codemirror.net/LICENSE | ||
| + | ||
| (function(mod) { | ||
| if (typeof exports == "object" && typeof module == "object") // CommonJS | ||
| mod(require("../../lib/codemirror"), require("../../mode/css/css")); | ||
View
3
addon/hint/html-hint.js
| @@ -1,3 +1,6 @@ | ||
| +// CodeMirror, copyright (c) by Marijn Haverbeke and others | ||
| +// Distributed under an MIT license: http://codemirror.net/LICENSE | ||
| + | ||
| (function(mod) { | ||
| if (typeof exports == "object" && typeof module == "object") // CommonJS | ||
| mod(require("../../lib/codemirror")); | ||
View
9
addon/hint/javascript-hint.js
| @@ -1,3 +1,6 @@ | ||
| +// CodeMirror, copyright (c) by Marijn Haverbeke and others | ||
| +// Distributed under an MIT license: http://codemirror.net/LICENSE | ||
| + | ||
| (function(mod) { | ||
| if (typeof exports == "object" && typeof module == "object") // CommonJS | ||
| mod(require("../../lib/codemirror")); | ||
| @@ -108,7 +111,8 @@ | ||
| if (obj.type && obj.type.indexOf("variable") === 0) { | ||
| if (options && options.additionalContext) | ||
| base = options.additionalContext[obj.string]; | ||
| - base = base || window[obj.string]; | ||
| + if (!options || options.useGlobalScope !== false) | ||
| + base = base || window[obj.string]; | ||
| } else if (obj.type == "string") { | ||
| base = ""; | ||
| } else if (obj.type == "atom") { | ||
| @@ -128,7 +132,8 @@ | ||
| // (reading into JS mode internals to get at the local and global variables) | ||
| for (var v = token.state.localVars; v; v = v.next) maybeAdd(v.name); | ||
| for (var v = token.state.globalVars; v; v = v.next) maybeAdd(v.name); | ||
| - gatherCompletions(window); | ||
| + if (!options || options.useGlobalScope !== false) | ||
| + gatherCompletions(window); | ||
| forEach(keywords, maybeAdd); | ||
| } | ||
| return found; | ||
View
3
addon/hint/python-hint.js
| @@ -1,3 +1,6 @@ | ||
| +// CodeMirror, copyright (c) by Marijn Haverbeke and others | ||
| +// Distributed under an MIT license: http://codemirror.net/LICENSE | ||
| + | ||
| (function(mod) { | ||
| if (typeof exports == "object" && typeof module == "object") // CommonJS | ||
| mod(require("../../lib/codemirror")); | ||
Oops, something went wrong.
Showing you all comments on commits in this comparison.
daveagp
commented on 24a6c79
May 19, 2014
|
Works perfectly when I add a class in renderLine. Thank you! |