Gusted
fbbffb9a07
Return correct column on missed semicolon
...
I've added some test-cases to ensure it works.
Also added a comment about `why` we it need to get token[3]+1
And ultimately it resolves https://github.com/postcss/postcss/issues/1617
Regards,
Gusted
2021-07-21 16:33:08 +02:00
Andrey Sitnik
843ab11b6e
Add Prettier
2021-03-11 19:11:37 -05:00
Andrey Sitnik
35164d4d74
Improve position code
2020-09-16 17:43:45 -04:00
Andrey Sitnik
8da907cec7
Fix declaration position
2020-09-16 17:43:33 -04:00
Andrey Sitnik
84a657d8be
Remove line/column tracking from tokenizer
2020-09-09 01:21:14 -04:00
Andrey Sitnik
3860676e02
Fix offset
2020-09-08 22:33:51 -04:00
Ayaz Zaynutdinov and Andrey Sitnik
080c6b3002
Add offset property to position
2020-09-08 22:18:32 -04:00
Andrey Sitnik
0048657b13
Add "use strict" because it may effect on tokenizer performance
2020-09-08 01:46:46 -04:00
Andrey Sitnik
aaf34ef51e
Better empty declaration parsing
2020-09-08 01:04:55 -04:00
Andrey Sitnik
d4c1acf923
Keep whitespace in declaration on empty value
2020-09-07 14:02:30 -04:00
Andrey Sitnik
2680563d28
Improve at-rule parsing
2020-08-09 18:12:09 -07:00
Andrey Sitnik
c3b3015661
Improve test coverage
2020-08-04 17:37:21 -07:00
Andrey Sitnik
b27aa7d0a8
Improve custom properties parse with JSON data
2020-06-21 19:13:53 -04:00
Andrey Sitnik
d6eeb4edf7
Clean up regexps
2020-06-21 19:13:53 -04:00
Andrey Sitnik
288d2ffdb6
Clean up code
2020-06-21 19:13:53 -04:00
Andrey Sitnik
0e6be3a2dc
Fix rebase problems
2020-06-21 19:13:52 -04:00
Andrey Sitnik
04b816cbde
Remove Babel
2020-06-21 19:13:52 -04:00
Andrey Sitnik
f43a45a907
Use .es6 ext for ES6 sources
2015-08-17 16:20:40 +03:00
Andrey Sitnik
51a4822d52
Remove Root#prevMap for more consistence API
2015-08-17 16:20:39 +03:00
Andrey Sitnik
784d5b798a
Fix ESLint warnings
2015-08-17 16:20:39 +03:00
Andrey Sitnik
474f58e447
Clean up code
2015-08-17 16:20:39 +03:00
Andrey Sitnik
366ef95224
Clean up code
2015-08-17 16:20:39 +03:00
Andrey Sitnik
382de6113d
Move Safe Parser to separated project
2015-08-17 16:20:39 +03:00
Andrey Sitnik
b02e3a6aea
Prepare parser be extended in postcss-safe-parser
2015-08-17 16:20:39 +03:00
Andrey Sitnik
0008b3d4c2
Move to ESLint 1.0
2015-08-17 16:20:38 +03:00
Andrey Sitnik
b76b5a34fc
Move code style properties to Node#raw
2015-08-17 16:20:37 +03:00
Andrey Sitnik
c128e5b954
Clean up code styles
2015-08-17 16:20:37 +03:00
Andrey Sitnik
e5898c5769
Allow to parse at-words in declaration values
2015-04-14 00:33:19 +03:00
Andrey Sitnik
ac8c257ed5
Parse wrong close bracket
2015-03-28 18:46:36 +03:00
Andrey Sitnik
9ce8d09a14
Clean up important parsing
2015-03-25 15:15:35 +03:00
Ben Briggs
4a395c29d4
Parse spaces & comments inside important. Fixes #253 .
2015-03-22 21:10:37 +00:00
Andrey Sitnik
709200a2b4
Lint code with ESLint
2015-03-14 22:02:49 +03:00
Andrey Sitnik
9eb7f69d31
Remove outdated comments because we have API.md
2015-03-14 22:02:49 +03:00
Andrey Sitnik
92d6fbc3c4
Better error on double colon
2015-02-23 16:19:58 +03:00
Andrey Sitnik
2aec1ca4d8
Fix name conflict
2015-02-22 19:31:15 +03:00
Andrey Sitnik
a6af7ab64e
Clean up imports
2015-02-14 13:23:49 +03:00
Andrey Sitnik
35e3c61417
Use ES6 export statement instead of module.exports
2015-02-14 13:17:18 +03:00
Andrey Sitnik
912d6ea2a0
Use ES6 import
2015-02-02 07:07:53 +03:00
Andrey Sitnik
fab10ab407
Update to 6to5 3.0
2015-01-28 14:12:10 +03:00
Andrey Sitnik
d488d687b3
Add source to Root too
2015-01-11 17:48:57 +01:00
Andrey Sitnik
d8b2a03372
Use style system for Container#semicolon
2014-12-29 23:00:10 +01:00
Andrey Sitnik
f369fdc96e
Move source map code from CssSyntaxError to Input
2014-12-27 00:24:13 +03:00
Andrey Sitnik
694b374412
Save Input to Node
2014-12-27 00:24:13 +03:00
Andrey Sitnik
1fb935a544
Rename childs to nodes
2014-12-27 00:24:13 +03:00
Andrey Sitnik
94f572af9d
Fix IE filter with multiple values
2014-12-09 12:01:09 +03:00
Andrey Sitnik
bb24fa1d4e
Fix Safe Mode on unclosed blocks
2014-12-07 22:58:30 +02:00
Andrey Sitnik
71a1e3313f
Fix semicolon parsing on comment at end
2014-12-07 18:32:05 +02:00
Andrey Sitnik
4e16d2a1ed
Do not change array in parser
2014-11-27 06:03:19 +03:00
Andrey Sitnik
54ada3290a
Increase parser perfomance
2014-11-27 04:51:19 +03:00
Andrey Sitnik
28a049f00d
Speed up tokenizer and parser
2014-11-27 04:30:54 +03:00