Commit Graph

92 Commits

Author SHA1 Message Date
Eduardo San Martin Morote c4ba4df60b ci: remove sudo 2018-08-08 11:41:20 +02:00
Eduardo San Martin Morote 3c9e78f75c ci: install make 2018-08-08 11:40:47 +02:00
Eduardo San Martin Morote d2e8ec0c80 ci: test circle ci 2 2018-08-08 11:37:51 +02:00
w0rp e531e1d24f Use buffer variables for ALE, and load Vue linters (#111) 2018-07-06 11:26:29 +02:00
Adriaan Zonnenberg 6e90d9ed5a Allow newlines after a tag name
Closes #108
2018-05-25 23:32:56 +02:00
Vincent Petry 58d8de76b0 Explicitly load javascript/eslint.vim (#105)
In some environments it seems it doesn't load automatically.

Fixes #103
2018-04-04 16:17:24 +02:00
Adriaan Zonnenberg a279172752 Fix #68 - change load order of syntax files
I'm not sure what's the root cause of this, but this seems to work.
2018-03-03 19:47:17 +01:00
Adriaan Zonnenberg 3cc4ac7b02 readme: fix details arrow placement 2018-03-02 20:59:54 +01:00
Adriaan Zonnenberg 5c3a71983c Simplify testing commands using a Makefile 2018-03-02 18:31:23 +01:00
Adriaan Zonnenberg a0cfe6791c readme
* Remove Typescript section. As long as the highlighting "just works", a section in the FAQ shouldn't be needed.
* Fix typo
* Add some more explanation
* Add links to referenced plugins
2018-03-02 16:22:41 +01:00
Marcel Bischoff a936d8ab38 Add caw.vim section (#93) 2018-02-24 07:56:54 +01:00
glore Zeng ea8bd7bd00 Add support for wpy files (#86) 2018-02-23 17:02:28 +01:00
Adriaan Zonnenberg fffb29a31a Fix #96 - support custom html tag names 2018-02-22 22:21:07 +01:00
Adriaan Zonnenberg 1a2295e12e Add link to eslint-plugin-vue documentation
closes #83
2018-02-22 14:31:59 +01:00
Juan 2cd7b64b1e Fix typo on README (#100) 2018-02-21 17:12:15 +01:00
Adriaan Zonnenberg 6518e73886 Add section mappings
References #94
2017-12-12 17:50:43 +01:00
Michael Foss db295dbf13 Correct typo in README (#90) 2017-10-19 19:37:09 +02:00
Jacob Merizian 568f5a2762 Allows users to turn off preprocessor language parsing for better performance (#79)
* removed preprocessing langs from registration

I'm not sure if this will work

* add back support for pre-processors

adds back support for preprocessors, but keeps vim fast when not in use

* completely removed support for preprocessors

testing to see if completely removing preprocessor language registrations will make syntime reports more performant

* added back conditional support

conditional support should work now

* just testing remove all preprocessor support

* I think this will work

* i found the actual bug

some regex statements are being checked several times

* quick fix for now

I only apply a quick fix until I can get to the root of the problem. For this, in order to turn off the preprocessors which seem to bog down vim, just put `let g:avoid_pre_processors = 1` in the .vimrc (or neovim equivalent).

* forgot endif statement

* testing behavior

* removed line to test behavior

* Update readme.md

* Update readme.md

* Update vue.vim

* Update vue.vim

* Update readme.md
2017-07-21 11:07:04 +02:00
Adriaan Zonnenberg c7f975ddb8 Use a script-local variable instead of global 2017-05-17 17:30:07 +02:00
z1lk aaf2a641b2 Adds a single line to register haml as a template language (#67) 2017-04-28 01:47:30 +02:00
akh 27dc461cb4 v- @ : directives support (#66) 2017-04-17 23:01:57 +02:00
Milot Mirdita fddbefe37a Fixed instructions for vim8, now loads the plugin (#63) 2017-04-07 21:09:49 +02:00
Adriaan Zonnenberg f72aac329a Add configuration for ALE and simplify Syntastic configuration
Replaced syntastic configuration by a file that uses Syntastic's
redirect option to redirect to 'javascript/eslint'
2017-03-28 22:34:20 +02:00
Adriaan Zonnenberg a9f7aedabf Add note to FAQ about nerdcommenter, and add tests for it 2017-03-26 23:45:45 +02:00
Adriaan Zonnenberg e0c07d80c6 Add a note about compound filetypes to the FAQ 2017-03-26 23:00:15 +02:00
Adriaan Zonnenberg 32bc65cac2 Revert "Add multiple filetypes as javscript,html and css (#42)"
This reverts commit 078be5a88f.
2017-03-26 22:51:44 +02:00
Adriaan Zonnenberg 3c9105849b Merge pull request #62 from posva/register-function
Add a register function that makes it easier to add new languages
2017-03-26 22:45:19 +02:00
Adriaan Zonnenberg 4099c91566 Update readme
Move typescript section to FAQ and add an entry about
`:syn sync fromstart`
2017-03-26 22:35:15 +02:00
Adriaan Zonnenberg d4793f5963 Fix indentation for script tags and refactor
Fixes the indentation for script tags. The javascript indentation
interpreted the `<script>` tag as a comparison operator.
2017-03-26 22:35:06 +02:00
Adriaan Zonnenberg 239401d54d Integrate with CircleCI 2017-03-26 21:27:34 +02:00
Adriaan Zonnenberg b5c8e6f330 Highlight the surrounding tags correctly
Removes omit_attr argument from s:register_language(), because html,
javascript, and css regions were the only ones that used it, and they
are now handled by syntax/html.vim.

`runtime! syntax/html.vim` also has the advantage that we can hook into
the html syntax, meaning that we can add stuff like highlighting
javascript expressions inside vue directives, and add our own html
attributes.

Also removes the start of line limitation introduced in previous commit
2017-03-26 21:25:20 +02:00
Adriaan Zonnenberg 32d2c0a943 Easier way to define new languages
Add more test cases

Also fixed some style issues

TODO: split tests up in multiple files, e.g. test/test_html_syntax.vader
2017-03-26 21:23:52 +02:00
Adriaan Zonnenberg 82067c7d14 Add initial tests 2017-03-22 23:34:53 +01:00
Adriaan Zonnenberg cdd07e6497 Fix template pattern (#57) 2017-03-15 12:15:24 +01:00
Eduardo San Martin Morote 81ada6a73f Load typescript only if it exists
Fix #56
2017-03-14 18:50:14 +01:00
Eduardo San Martin Morote b60c475d42 Fix #56 2017-03-14 18:47:17 +01:00
Eduardo San Martin Morote 77dffb344e Merge pull request #55 from esdras/master
Add typescript support
2017-03-14 16:13:33 +01:00
Esdras Mayrink 4f837e5027 [typescript] Extra attributes on the script tag 2017-03-14 11:10:34 -03:00
Esdras Mayrink 3339eab69e Update README to explain how to use with typescript 2017-03-13 22:10:20 -03:00
Esdras Mayrink 8d3dc46181 Better support for Typescript syntax
Now we can define typescript syntax region by:
<script ts>...</script>
<script lang="ts">...</script>
<script lang="typescript">...</script>
2017-03-13 21:55:11 -03:00
Esdras Mayrink 51b18f8b90 Fix TS support
Just add an attribute to the script tag, like this: <script ts></script>
lang="typescript" confundes the webpack loader
2017-03-11 17:11:06 -03:00
Esdras Mayrink 404787aae2 Add support for typescript and improve html support 2017-03-11 16:56:47 -03:00
Eduardo San Martin Morote f75a55ef19 Remove attrs limitation on style tag (#53)
* Remove attrs limitation on style tag

Closes #52
Style tags can actually have any amount of extra tags, so adding the
scoped tags is just too limiting.

* Improve attribute patterns
2017-03-08 00:24:40 +01:00
Adriaan Zonnenberg c122cb8c29 Move 'suffixesadd' from after/ftplugin to ftplugin
In #46, the question was where to put this option, and why some other
plugins put it in the 'after' directory. Vim-javascript puts it in the
'after' directory because they want to keep the settings in the ftplugin
shipped with Vim, and only add the 'suffixesadd' option. Since Vim
doesn't ship with a Vue plugin, we can safely put this option in ftplugin.
2017-02-21 22:00:26 +01:00
Adriaan Zonnenberg 0d5a392a11 Use unlet! instead of unlet
A bang after unlet suppresses the error if there is no such variable,
which removes the need for checking if the variable exists.
2017-02-19 22:10:05 +01:00
Franco Victorio f6694b40a7 Add .vue to 'suffixesadd' (#46) 2017-01-23 00:17:12 +01:00
Beser 078be5a88f Add multiple filetypes as javscript,html and css (#42)
* Add multiple filetypes for html,css and javascript

Vim plugings like autocomplete and snippets use filetypes to function,
hence this commit adds filetypes css,html and javascript

* Add multiple filetypes for html,css and javascript

Vim plugings like autocomplete and snippets use filetypes to function,
hence this commit adds filetypes css,html and javascript.

This commit closes #41
2017-01-15 18:11:19 +01:00
Eduardo San Martin Morote d90cd7bd7e Merge pull request #43 from sliceofcode/master
Fix JavaScript highlighting
2017-01-09 10:51:52 +01:00
sliceofcode 42a2ec5243 Fix JavaScript highlighting 2017-01-08 21:45:32 -08:00
Eduardo San Martin Morote 0e34ab8bb7 Merge pull request #40 from kesor/support-slm-lang
Add `slm` language support for templates
2016-12-25 20:34:23 +01:00