summaryrefslogtreecommitdiff
path: root/test/indent
Commit message (Collapse)AuthorAgeFilesLines
* Rename all test files to reflect source layout.Phillip Lord2015-11-2420-4899/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * CONTRIBUTE,Makefile.in,configure.ac: Update to reflect test directory moves. * test/file-organisation.org: New file. * test/automated/Makefile.in test/automated/data/decompress/foo.gz test/automated/data/epg/pubkey.asc test/automated/data/epg/seckey.asc test/automated/data/files-bug18141.el.gz test/automated/data/flymake/test.c test/automated/data/flymake/test.pl test/automated/data/package/archive-contents test/automated/data/package/key.pub test/automated/data/package/key.sec test/automated/data/package/multi-file-0.2.3.tar test/automated/data/package/multi-file-readme.txt test/automated/data/package/newer-versions/archive-contents test/automated/data/package/newer-versions/new-pkg-1.0.el test/automated/data/package/newer-versions/simple-single-1.4.el test/automated/data/package/package-test-server.py test/automated/data/package/signed/archive-contents test/automated/data/package/signed/archive-contents.sig test/automated/data/package/signed/signed-bad-1.0.el test/automated/data/package/signed/signed-bad-1.0.el.sig test/automated/data/package/signed/signed-good-1.0.el test/automated/data/package/signed/signed-good-1.0.el.sig test/automated/data/package/simple-depend-1.0.el test/automated/data/package/simple-single-1.3.el test/automated/data/package/simple-single-readme.txt test/automated/data/package/simple-two-depend-1.1.el test/automated/abbrev-tests.el test/automated/auto-revert-tests.el test/automated/calc-tests.el test/automated/icalendar-tests.el test/automated/character-fold-tests.el test/automated/comint-testsuite.el test/automated/descr-text-test.el test/automated/electric-tests.el test/automated/cl-generic-tests.el test/automated/cl-lib-tests.el test/automated/eieio-test-methodinvoke.el test/automated/eieio-test-persist.el test/automated/eieio-tests.el test/automated/ert-tests.el test/automated/ert-x-tests.el test/automated/generator-tests.el test/automated/let-alist.el test/automated/map-tests.el test/automated/advice-tests.el test/automated/package-test.el test/automated/pcase-tests.el test/automated/regexp-tests.el test/automated/seq-tests.el test/automated/subr-x-tests.el test/automated/tabulated-list-test.el test/automated/thunk-tests.el test/automated/timer-tests.el test/automated/epg-tests.el test/automated/eshell.el test/automated/faces-tests.el test/automated/file-notify-tests.el test/automated/auth-source-tests.el test/automated/gnus-tests.el test/automated/message-mode-tests.el test/automated/help-fns.el test/automated/imenu-test.el test/automated/info-xref.el test/automated/mule-util.el test/automated/isearch-tests.el test/automated/json-tests.el test/automated/bytecomp-tests.el test/automated/coding-tests.el test/automated/core-elisp-tests.el test/automated/decoder-tests.el test/automated/files.el test/automated/font-parse-tests.el test/automated/lexbind-tests.el test/automated/occur-tests.el test/automated/process-tests.el test/automated/syntax-tests.el test/automated/textprop-tests.el test/automated/undo-tests.el test/automated/man-tests.el test/automated/completion-tests.el test/automated/dbus-tests.el test/automated/newsticker-tests.el test/automated/sasl-scram-rfc-tests.el test/automated/tramp-tests.el test/automated/obarray-tests.el test/automated/compile-tests.el test/automated/elisp-mode-tests.el test/automated/f90.el test/automated/flymake-tests.el test/automated/python-tests.el test/automated/ruby-mode-tests.el test/automated/subword-tests.el test/automated/replace-tests.el test/automated/simple-test.el test/automated/sort-tests.el test/automated/subr-tests.el test/automated/reftex-tests.el test/automated/sgml-mode-tests.el test/automated/tildify-tests.el test/automated/thingatpt.el test/automated/url-future-tests.el test/automated/url-util-tests.el test/automated/add-log-tests.el test/automated/vc-bzr.el test/automated/vc-tests.el test/automated/xml-parse-tests.el test/BidiCharacterTest.txt test/biditest.el test/cedet/cedet-utests.el test/cedet/ede-tests.el test/cedet/semantic-ia-utest.el test/cedet/semantic-tests.el test/cedet/semantic-utest-c.el test/cedet/semantic-utest.el test/cedet/srecode-tests.el test/cedet/tests/test.c test/cedet/tests/test.el test/cedet/tests/test.make test/cedet/tests/testdoublens.cpp test/cedet/tests/testdoublens.hpp test/cedet/tests/testfriends.cpp test/cedet/tests/testjavacomp.java test/cedet/tests/testnsp.cpp test/cedet/tests/testpolymorph.cpp test/cedet/tests/testspp.c test/cedet/tests/testsppcomplete.c test/cedet/tests/testsppreplace.c test/cedet/tests/testsppreplaced.c test/cedet/tests/testsubclass.cpp test/cedet/tests/testsubclass.hh test/cedet/tests/testtypedefs.cpp test/cedet/tests/testvarnames.c test/etags/CTAGS.good test/etags/ETAGS.good_1 test/etags/ETAGS.good_2 test/etags/ETAGS.good_3 test/etags/ETAGS.good_4 test/etags/ETAGS.good_5 test/etags/ETAGS.good_6 test/etags/a-src/empty.zz test/etags/a-src/empty.zz.gz test/etags/ada-src/2ataspri.adb test/etags/ada-src/2ataspri.ads test/etags/ada-src/etags-test-for.ada test/etags/ada-src/waroquiers.ada test/etags/c-src/a/b/b.c test/etags/c-src/abbrev.c test/etags/c-src/c.c test/etags/c-src/dostorture.c test/etags/c-src/emacs/src/gmalloc.c test/etags/c-src/emacs/src/keyboard.c test/etags/c-src/emacs/src/lisp.h test/etags/c-src/emacs/src/regex.h test/etags/c-src/etags.c test/etags/c-src/exit.c test/etags/c-src/exit.strange_suffix test/etags/c-src/fail.c test/etags/c-src/getopt.h test/etags/c-src/h.h test/etags/c-src/machsyscalls.c test/etags/c-src/machsyscalls.h test/etags/c-src/sysdep.h test/etags/c-src/tab.c test/etags/c-src/torture.c test/etags/cp-src/MDiagArray2.h test/etags/cp-src/Range.h test/etags/cp-src/burton.cpp test/etags/cp-src/c.C test/etags/cp-src/clheir.cpp.gz test/etags/cp-src/clheir.hpp test/etags/cp-src/conway.cpp test/etags/cp-src/conway.hpp test/etags/cp-src/fail.C test/etags/cp-src/functions.cpp test/etags/cp-src/screen.cpp test/etags/cp-src/screen.hpp test/etags/cp-src/x.cc test/etags/el-src/TAGTEST.EL test/etags/el-src/emacs/lisp/progmodes/etags.el test/etags/erl-src/gs_dialog.erl test/etags/f-src/entry.for test/etags/f-src/entry.strange.gz test/etags/f-src/entry.strange_suffix test/etags/forth-src/test-forth.fth test/etags/html-src/algrthms.html test/etags/html-src/index.shtml test/etags/html-src/software.html test/etags/html-src/softwarelibero.html test/etags/lua-src/allegro.lua test/etags/objc-src/PackInsp.h test/etags/objc-src/PackInsp.m test/etags/objc-src/Subprocess.h test/etags/objc-src/Subprocess.m test/etags/objcpp-src/SimpleCalc.H test/etags/objcpp-src/SimpleCalc.M test/etags/pas-src/common.pas test/etags/perl-src/htlmify-cystic test/etags/perl-src/kai-test.pl test/etags/perl-src/yagrip.pl test/etags/php-src/lce_functions.php test/etags/php-src/ptest.php test/etags/php-src/sendmail.php test/etags/prol-src/natded.prolog test/etags/prol-src/ordsets.prolog test/etags/ps-src/rfc1245.ps test/etags/pyt-src/server.py test/etags/tex-src/gzip.texi test/etags/tex-src/nonewline.tex test/etags/tex-src/testenv.tex test/etags/tex-src/texinfo.tex test/etags/y-src/atest.y test/etags/y-src/cccp.c test/etags/y-src/cccp.y test/etags/y-src/parse.c test/etags/y-src/parse.y test/indent/css-mode.css test/indent/js-indent-init-dynamic.js test/indent/js-indent-init-t.js test/indent/js-jsx.js test/indent/js.js test/indent/latex-mode.tex test/indent/modula2.mod test/indent/nxml.xml test/indent/octave.m test/indent/pascal.pas test/indent/perl.perl test/indent/prolog.prolog test/indent/ps-mode.ps test/indent/ruby.rb test/indent/scheme.scm test/indent/scss-mode.scss test/indent/sgml-mode-attribute.html test/indent/shell.rc test/indent/shell.sh test/redisplay-testsuite.el test/rmailmm.el test/automated/buffer-tests.el test/automated/cmds-tests.el test/automated/data-tests.el test/automated/finalizer-tests.el test/automated/fns-tests.el test/automated/inotify-test.el test/automated/keymap-tests.el test/automated/print-tests.el test/automated/libxml-tests.el test/automated/zlib-tests.el: Files Moved.
* Add JSX indentation via js-jsx-mode. (Bug#21799)Jackson Ray Hamilton2015-10-311-0/+85
| | | | | | * progmodes/js.el: Add JSX indentation support. (js-jsx-indent-line) (js-jsx-mode): New functions.
* * test/indent/css-mode.css: Add tests for url(...) syntax.Stefan Monnier2015-10-291-1/+3
|
* js-mode: Don't misindent generator methodsDmitry Gutov2015-10-151-0/+7
| | | | | | * lisp/progmodes/js.el (js--looking-at-operator-p): Distinguish generator methods from multiplication operator (https://github.com/mooz/js2-mode/issues/275).
* * lisp/progmodes/prolog.el: Fix various indentation casesStefan Monnier2015-09-291-13/+39
| | | | | | (prolog-operator-chars): New const (add \\). (prolog-smie-forward-token, prolog-smie-backward-token): Use it. (prolog-smie-rules): Add rules according to bug#21526.
* * lisp/progmodes/octave.el: Use grammar more; Handle enumeration funStefan Monnier2015-09-291-0/+22
| | | | | | | | | | | | | | | | | | | | | Remove redundant :group keyword args. (octave-begin-keywords, octave-else-keywords, octave-end-keywords): Remove variables. (octave-operator-table, octave-smie-bnf-table): Use let-when-compile to turn them into compile-time variables. Auto-generate the "foo ... end" rules from the "foo ... endfoo" rules. Add rules for break, continue, return, global, and persistent. Refine the rule for "until". (octave-smie--funcall-p, octave-smie--end-index-p) (octave-smie--in-parens-p): New functions. (octave-smie-backward-token, octave-smie-forward-token): Use them to distinguish the "enumeration" function and the "end" index from their corresponding keywords. (octave--block-offset-keywords): New constant. (octave-smie-rules): Use it. Adjust rules for new global/persistent parsing. (octave-reserved-words): Redefine using octave-smie-grammar. (octave-font-lock-keywords): Use octave-smie--funcall-p and octave-smie--end-index-p.
* * prolog.el: Fix indentation of empty lineStefan Monnier2015-09-221-9/+8
| | | | | | | | | | | | | | | | | * lisp/emacs-lisp/smie.el (smie-rules-function): Document new `empty-line-token' element. (smie-indent-empty-line): New function. (smie-indent-functions): Add it. * lisp/progmodes/prolog.el (prolog-smie-rules): Fix :list-intro behavior and use the new `empty-line-token' element (bug#21526). (prolog-mode-variables): Fix comment-start-skip setting to match comment-start. * test/indent/prolog.prolog: Add nested indentation tests. * lisp/newcomment.el (comment-normalize-vars): Fix default value of comment-start-skip not to misuse submatch 1.
* Subject: * lisp/progmodes/prolog.el: Improve handling of if/then/elseStefan Monnier2015-09-201-3/+25
| | | | | | | (prolog-smie-rules): Accomodate standard if/then/else special indentation. (prolog-mode): Add . to electric-indent-chars. (prolog-electric--if-then-else): Re-indent the line before adding space after the new char (bug#21526).
* Fix indentation rule in css-modeSimen Heggestøyl2015-08-281-0/+5
| | | | | * lisp/textmodes/css-mode.el (css-smie-rules): Fix indentation of brackets in presence of pseudo-selectors. (Bug#21328)
* * lisp/emacs-lisp/smie.el (smie-indent-current-column): New funStefan Monnier2015-08-211-1/+1
| | | | | | (smie-indent-exps, smie-indent-keyword): Use it. * test/indent/css-mode.css: Test alignment with leading comment.
* * lisp/progmodes/perl-mode.el: Refine handling of /re/ and y/abc/def/Stefan Monnier2015-06-151-0/+8
| | | | | | (perl--syntax-exp-intro-keywords): New var. (perl--syntax-exp-intro-regexp, perl-syntax-propertize-function): Use it. (bug#20800).
* * src/lread.c (intern_1): Make sure we'd find the symbol we addStefan Monnier2015-04-151-0/+9
| | | | | | Fixes: debbugs:20334 * src/xfaces.c (resolve_face_name): Don't use `intern' with Lisp_Strings.
* css-mode.el (css-smie-rules): Fix indentation after complex selectorsStefan Monnier2015-04-091-0/+15
| | | | | | | Fixes: debbugs:20282 * lisp/textmodes/css-mode.el (css-smie-rules): Don't get confused by inner structure of selectors.
* js-mode: Don't indent inside a multiline string literalDmitry Gutov2015-04-031-0/+5
| | | | | * lisp/progmodes/js.el (js-indent-line): Do nothing when bol is inside a string (https://github.com/mooz/js2-mode/issues/227).
* Have `sgml-attribute-offset' control SGML attribute indentationJackson Ray Hamilton2015-03-221-0/+14
| | | | | | | | Fixes: debbugs:20161 * textmodes/sgml-mode.el (sgml-attribute-offset): New defcustom. (sgml-calculate-indent): Use `sgml-attribute-offset' for attribute indentation.
* * indent/js-indent-init-dynamic.js: Fix spelling error.Jackson Ray Hamilton2015-03-101-1/+1
|
* Prefer "initialize" to "initialise"Paul Eggert2015-03-102-2/+2
| | | | | | | | | | * lisp/progmodes/js.el (js-indent-first-init): Rename from js-indent-first-initialiser, to avoid worrying about American vs British spelling. All uses changed. * test/indent/js-indent-init-t.js: Rename from indent/js-indent-first-initialiser-t.js. * test/indent/js-indent-init-dynamic.js: Rename from test/indent/js-indent-first-initialiser-dynamic.js.
* New indentation option for js-modeJackson Ray Hamilton2015-03-103-2/+56
| | | | | | | | | | | | | | * lisp/progmodes/js.el (js--proper-indentation): Add new custom option `js-indent-first-initialiser' and a function to utilize it, `js--maybe-goto-declaration-keyword-end'. * test/indent/js.js: Add local variables. * test/indent/js-indent-first-initialiser-t.js: New test for `js-indent-first-initialiser'. * test/indent/js-indent-first-initialiser-dynamic.js: New test for `js-indent-first-initialiser'.
* Automate 'make all' in test/indentDmitry Gutov2015-03-101-3/+4
|
* Add an indent test example for bug#20026Dmitry Gutov2015-03-081-0/+4
| | | | * test/indent/ruby.rb: Add an example for bug#20026.
* Fix test/indent/js.jsDmitry Gutov2015-03-081-1/+3
| | | | | * test/indent/js.js: Set `js-indent-level' to 2. Fix indentation in an example.
* Teach js-mode about ES6 template stringsDmitry Gutov2015-03-051-0/+3
| | | | * lisp/progmodes/js.el (js-mode-syntax-table): Add an entry for `.
* * indent/shell.sh (bar): Use '[ $# -eq 0 ]', not '[ $# == 0 ]'.Paul Eggert2015-01-241-8/+8
| | | | | This is more portable in shell scripts. Fixes: bug#19658
* Update copyright year to 2015Paul Eggert2015-01-011-1/+1
| | | | Run admin/update-copyright.
* (js-syntax-propertize-regexp): Recognize "slash in a character class"Stefan Monnier2014-12-231-0/+5
| | | | | | | | Fixes: debbugs:19397 * lisp/progmodes/js.el (js--syntax-propertize-regexp-syntax-table): New var. (js-syntax-propertize-regexp): Use it to recognize "slash in a character class".
* Merge from emacs-24Stefan Monnier2014-12-051-0/+11
|\
| * * lisp/progmodes/sh-script.el: Fix indentation rule of "| while".Stefan Monnier2014-12-041-0/+11
| | | | | | | | | | | | | | | | Fixes: debbugs:18031 * lisp/progmodes/sh-script.el (sh-smie-sh-rules): Go back to the beginning of the whole pipe when indenting an opening keyword after a |. Generalize this treatment to opening keywords like "while".
* | Merge branch 'emacs-24'Ted Zlatanov2014-11-261-0/+8
|\ \ | |/ | | | | | | | | | | Conflicts: nt/addsection.c nt/inc/ms-w32.h src/w32.c
| * Fix indentation before `!=' and after `+='Dmitry Gutov2014-11-161-0/+8
| | | | | | | | | | | | | | Originally reported in https://github.com/mooz/js2-mode/issues/174. * lisp/progmodes/js.el (js--indent-operator-re): Make assignments and (in)equality operator a separate case. (js--continued-expression-p): Escape the second `+' in the regexp.
* | * lisp/textmodes/css-mode.el (scss-mode): New major-mode.Stefan Monnier2014-10-202-0/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (css-mode-syntax-table): Use d style comment, to ease the scss case. (css-ident-re): Allow things like @-moz-keyframes. (scss--hash-re): New const. (css--font-lock-keywords): New function, extracted from css-font-lock-keywords. (css-font-lock-keywords): Use it. (scss-mode-syntax-table, scss-font-lock-keywords): New vars. (scss-smie--not-interpolation-p): New function. (css-smie--forward-token, css-smie--backward-token): Use it. (css-mode): Remove left-over code. * test/indent/scss-mode.scss: New file. * test/indent/css-mode.css: Add a few uneventful examples.
* | * lisp/progmodes/perl-mode.el (perl-syntax-propertize-function):Stefan Monnier2014-09-211-0/+4
| | | | | | | | | | | | Accept underscores in identifiers after "sub". Fixes: debbugs:18502
* | Remove stray semicolons.Paul Eggert2014-09-041-1/+1
| |
* | Merge from emacs-24; up to 2014-07-04T02:28:54Z!dmantipov@yandex.ruGlenn Morris2014-09-021-0/+9
|\ \ | |/
| * test/indent/scheme.scm: New file.Stefan Monnier2014-09-021-0/+9
| |
* | Merge from emacs-24; up to 2014-06-19T14:03:45Z!monnier@iro.umontreal.caGlenn Morris2014-07-081-0/+6
|\ \ | |/
| * * lisp/progmodes/sh-script.el (sh-smie-sh-rules): Don't align with a && inStefan Monnier2014-07-081-0/+6
| | | | | | | | | | | | the middle of a line. Fixes: debbugs:17896
* | * lisp/progmodes/perl-mode.el: Use syntax-ppss; fix one indentation case.Stefan Monnier2014-07-081-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | (perl-indent-line): Use syntax-ppss to detect we're in a doc-section. (perl-continuation-line-p): Don't skip over anything else than labels. Return the previous char. (perl-calculate-indent): Use syntax-ppss instead of parse-start and update callers accordingly. For continuation lines, check the the case of array hashes. (perl-backward-to-noncomment): Make it non-interactive. (perl-backward-to-start-of-continued-exp): Rewrite. * test/indent/perl.perl: Add indentation pattern for hash-table entries.
* | Merge from emacs-24; up to 2014-06-11T19:33:14Z!rgm@gnu.orgGlenn Morris2014-06-251-0/+7
|\ \ | |/
| * Fix some indentation problem with \; and pipes.Stefan Monnier2014-06-241-0/+7
| | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/sh-script.el (sh-mode-syntax-table): Set syntax of ;|&. (sh-smie--default-forward-token, sh-smie--default-backward-token): New functions. (sh-smie-sh-forward-token, sh-smie-sh-backward-token) (sh-smie-rc-forward-token, sh-smie-rc-backward-token): Use them. (sh-smie-sh-rules): Fix indentation of a pipe at BOL. Fixes: debbugs:17842
* | Merge from emacs-24; up to 2014-06-06T02:22:40Z!monnier@iro.umontreal.caGlenn Morris2014-06-211-0/+18
|\ \ | |/
| * * lisp/progmodes/sh-script.el (sh-smie-sh-rules): For { after &&, don'tStefan Monnier2014-06-201-0/+8
| | | | | | | | | | | | align with the surrounding parent. Fixes: debbugs:17721
| * * lisp/emacs-lisp/smie.el (smie--hanging-eolp-function): New var.Stefan Monnier2014-06-191-1/+5
| | | | | | | | | | | | | | (smie-indent--hanging-p): Use it. * lisp/progmodes/sh-script.el (sh-set-shell): Set it. Fixes: debbugs:17621
| * * lisp/progmodes/sh-script.el (sh-smie-sh-rules): Use same rule for && asStefan Monnier2014-06-191-0/+6
| | | | | | | | | | | | for |. Fixes: debbugs:17621
* | * test/indent/ps-mode.ps: New file.Stefan Monnier2014-05-273-0/+26
| | | | | | | | | | | | | | * test/automated/core-elisp-tests.el (core-elisp-test-window-configurations): New test. * test/indent/octave.m: Add a few more tests. * test/indent/ruby.rb: Add one more test.
* | Merge from emacs-24; up to 2014-05-12T06:15:47Z!rgm@gnu.orgGlenn Morris2014-05-112-0/+14
|\ \ | |/
| * * lisp/emacs-lisp/nadvice.el: Support adding a given function multiple times.Stefan Monnier2014-05-102-1/+15
| | | | | | | | | | | | | | | | | | (advice--member-p): If name is given, only compare the name. (advice--remove-function): Don't stop at the first match. (advice--normalize-place): New function. (add-function, remove-function): Use it. (advice--add-function): Pass the name, if any, to advice--remove-function.
* | * lisp/progmodes/perl-mode.el (perl--syntax-exp-intro-regexp): New var.Stefan Monnier2014-04-251-1/+5
|/ | | | | (perl-syntax-propertize-function): Use it. Extend handling of here-docs to the unquoted case.
* * lisp/progmodes/perl-mode.el (perl-syntax-propertize-function): Slash afterStefan Monnier2014-04-221-0/+2
| | | | | | &, |, +, - and * can't be a division. Fixes: debbugs:17317
* * lisp/nxml/nxml-mode.el (nxml-fontify-matcher): Make sure propertizationStefan Monnier2014-04-161-0/+10
| | | | | | | | was done. * lisp/nxml/xmltok.el (xmltok-scan-after-comment-open): Extend unclosed comment to EOB. Fixes: debbugs:17264
* * lisp/progmodes/pascal.el (pascal-font-lock-keywords): Fix incorrect formatFeng Li2014-04-101-0/+1
| | | | entry; use symbol boundaries to avoid mis-matches.