Commit Graph

38 Commits

Author SHA1 Message Date
LCD 47
44d7ffd7e0 makeprgBuild() refactor: add *_before and *_after options. 2014-01-28 21:44:44 +02:00
LCD 47
2d9ff2457f Minor cleanup: remove dead code; formatting. 2014-01-03 18:58:30 +02:00
LCD 47
b9accaa810 Minor cleanup: &cpo guards and formatting. 2014-01-03 11:29:08 +02:00
LCD 47
5f0be83a3d Merge branch 'master' into registry_cleanup 2013-11-08 10:34:15 +02:00
LCD 047
d952d14747 Merge pull request #856 from kaleb/patch-5
html/tidy: Remove hgroup, it is non-conforming
2013-11-07 23:18:11 -08:00
LCD 047
154d0c580a Merge pull request #855 from kaleb/patch-4
html/tidy: Add WAI-ARIA attributes
2013-11-07 23:16:36 -08:00
Kaleb Hornsby
1072ab0d14 Remove hgroup, it is non-conforming
http://www.w3.org/html/wg/drafts/html/master/obsolete.html#hgroup
2013-11-07 16:39:10 -05:00
Kaleb Hornsby
c907d1bb20 Added WAI-ARIA attributes
Added all WAI-ARIA aria-* and role attributes.

http://www.w3.org/TR/wai-aria/states_and_properties#state_prop_def

These are used to create accessible web applications.
2013-11-07 16:37:34 -05:00
Kaleb Hornsby
3c33284fa9 rm'd unkown attribute rule
more info: a956a81432 (commitcomment-4537304)
2013-11-07 16:20:44 -05:00
LCD 47
531859e89e Typo in html/tidy. 2013-11-07 21:14:15 +02:00
LCD 47
e07cd55385 Merge branch 'master' into registry_cleanup 2013-11-07 17:50:45 +02:00
LCD 047
b7ba0c0899 Merge pull request #851 from kaleb/patch-1
html/tidy: placeholder attribute should only be on input elements
2013-11-07 07:23:27 -08:00
Kaleb Hornsby
a69cb240d1 Allow more HTML5 input types
This allows the following:

- search
- number
- range
- date
- etc

Somebody could in theory put type="foo", but all browsers' default input type is "text" and they all ignore unknown types.
2013-11-07 09:57:29 -05:00
Kaleb Hornsby
38111f6e48 placeholder should only be on input elements 2013-11-07 09:53:43 -05:00
LCD 47
fd5a52e0bd Cleanup. 2013-11-04 23:00:51 +02:00
LCD 47
6d81ac5dd0 Registry cleanup, stage 3.
Make syntastic#makeprg#build() a dictionary function.
Remove the mandatory checker argument to syntastic#makeprg#build().
2013-11-02 10:44:06 +02:00
LCD 47
3694908d05 Registry cleanup, stage 2.
(1) Checkers now have an _exec attribute, and an accessor getExec().
(2) CreateAndRegisterChecker() initializes _exec from an optional argument
'exec'.  If this argument is missing, 'name' is used instead.
(3) Functions SyntaxCheckers_*_IsAvailable() are now dictionary functions.
(4) Functions SyntaxCheckers_*_IsAvailable() are now optional.  When
they are missing, they are assumed to return executable(expand(self.getExec())).
(5) Argument 'exe' of function syntastic#makeprg#build() is now optional.
If this argument is missing, expand(self.getExec()) is used to set checker
executables.
2013-11-02 10:44:06 +02:00
LCD 47
28bce98a68 Registry cleanup, stage 1.
Make SyntaxCheckers_*_GetLocList() dictionary functions.
Pass a reference to the current checker to syntastic#makeprg#build().
Add an optional 'redirect' argument to CreateAndRegisterChecker().
Change the sh checker to use the new dictionary functions.
Add a new registry method getLocListRaw() (needed for the sh checker).
2013-11-02 10:44:06 +02:00
LCD 47
cd1d1a2a55 Cleanup. 2013-11-01 11:51:04 +02:00
LCD 47
3288b3cddb Add more knobs to the html/tidy checker. 2013-07-28 21:59:23 +03:00
LCD 47
8c05dbf16e A first attempt at checking the exit code from the checkers. 2013-07-12 08:08:41 +03:00
LCD 47
6ba8e651cb Make shell escaping less produce fewer useless quotes.
Function inspired by tpope's vim-dispatch.
2013-07-04 21:04:20 +03:00
William Ting
dd7ed77886 fix errror misspellings 2013-06-04 07:53:06 -05:00
LCD 47
d3354f175c Make syntastic#makeprg#build() aware of filetypes. Fixes #667. 2013-05-31 21:05:45 +03:00
Eddie Monge Jr.
2da8a149a6 Add main to list of block level elements
HTML5 now supports main element http://www.w3.org/html/wg/drafts/html/master/grouping-content.html#the-main-element
2013-05-20 15:00:42 -06:00
LCD 47
6f214cbb6d Fix error highlighting in x?html/tidy. 2013-04-17 13:29:46 +03:00
LCD 47
49b0318fa6 Cleanup for tidy.
Added an user-defined global list of errors to ignore:
g:syntastic_html_tidy_ignore_errors.
Minor cleanup.
2013-04-11 23:00:25 +03:00
Martin Grenfell
16424e5761 add guards to all checkers
goddamn I love macros
2013-02-21 15:50:41 +00:00
Martin Grenfell
df9ca84a22 html/tidy: retarded bugfix with s:Args not returning a value 2013-02-08 16:27:07 +00:00
Asai Masami
438fc33311 add cp932 to tidy.vim. 2013-02-05 21:52:27 +09:00
Thanatermesis
a956a81432 Included some warning/errors to ignore
In today's html editing, almost nobody writes a "pure" html code
(complete, i mean), with body, title, etc... most of people uses CMS's
and similar things, which means that the html is just a "piece" of html
and not the entire structure, the changes on this branch are meant to
ignore those annoying warnings

The last line is for structures that includes the "&" character, like in
those kind of cases: < a href="http://foo.bar/something.php&value&something&foo" >
2013-02-04 19:00:10 +01:00
Martin Grenfell
e0b8e87c93 refactor all the syntax checkers to use the new API and dir layout 2013-01-27 20:08:30 +00:00
Martin Grenfell
5b31495af2 update makeprg builder and update some checkers to use it
update makeprg builder:
* it now accepts `fname`, `tail`, and `post_args` params.
* add some doc above syntastic#makeprg#build
* update a bunch of checkers to use the new params

Still have quite a few checkers that arent using makeprg#build.
Including all c* and a few other c-like checkers. And PHP.

Not to worried about c* as these checkers are complicated and probably
justify having their own logic to build makeprgs.
2013-01-20 12:27:19 +00:00
Martin Grenfell
6a184f0e37 update checkers to use the new syntastic#makeprg#build()
Make all the easy updates. There are still quite a few to do, but in
doing these ones I can see that syntastic#makeprg#build() needs to
accept a few more options. Namely:

* "postargs" that appear after the filename
* "tail" that appears after everything - used for things like
  redirecting output and piping to grep/sed/etc
* the filename itself - only the java checkers needed this since they
  specify the directory of the file to check as well

There are still a few other things to do as well:

* remove the options from the checkers that are now provided by
  syntastic#makeprg#build implicitly - i.e. the checker exe and args.
* also, we need to doc the above implicit checker options
2013-01-20 11:13:01 +00:00
Tom Jakubowski
56d1935dd2 Ignore tidy warning about "search" value for <input> type attribute 2012-12-24 04:30:42 -06:00
bryan kennedy
8d4e096599 Adding the HTML5 <souce> tag to valid tag list …
The HTML5 <source> tag throws an error when using Tidy since exceptions
have been made for audio and video, we should also support the source
tag which can exist inside these calls.
2012-09-11 12:37:57 -05:00
Martin Grenfell
7fc5246be4 html: rename w3c.vim to w3.vim (i fail @ naming files!)
Also, fix the header comments for tidy/w3 so they have the right
filenames
2012-05-01 15:23:22 +01:00
Martin Grenfell
5c159fd374 html: split the checkers into separate files
Previously the 2 checkers were in the same file - this is more "tidy"
(lol??).

Currently the logic to determine which checker is loaded is custom to
the checker. At some point the SyntasticLoadChecker() function should be
upgraded to be able to handle cases (like this one) where the name of
the checker doesnt imply the name(s) of the executables that have to be
checked for.
2012-05-01 15:14:42 +01:00