Commit Graph

70 Commits

Author SHA1 Message Date
Alexander Akait
43e75194e5
feat(css/parser): Normalize at-rules (#6705) 2023-01-14 08:58:24 +00:00
Alexander Akait
2571070148
feat(css/parser): Normalize and improve function name (#6667) 2022-12-20 12:43:58 +00:00
Alexander Akait
cb49fa6f1d
feat(css/minifier): Support to and from with initial (#6613) 2022-12-12 02:36:48 +00:00
Donny/강동윤
b4eef53680
feat(css/ast): Make AST intuitive (#6606) 2022-12-09 02:27:19 +00:00
Alexander Akait
8633d27df0
perf(css/ast): Reduce token size (#6569) 2022-12-06 01:58:29 +00:00
Alexander Akait
a1fe9076c2
fix(css/parser): Fix parsing of nested rules (#6563) 2022-12-02 03:52:54 +00:00
Donny/강동윤
7ee86d1d25
test: Use correct extensions for fixture tests (#6539) 2022-11-29 09:47:56 +00:00
Donny/강동윤
b8fe04f720
feat(common): Add contexts to the error messages (#6526)
**Description:**

This PR makes the error reporter print contexts.

**Related issue:**

 - https://github.com/swc-project/swc/issues/6525.
2022-11-29 00:56:47 +09:00
Alexander Akait
3d7545d89b
fix(css/parser): Fix a bug with scope in block (#6402) 2022-11-15 01:49:05 +00:00
Alexander Akait
983ab91435
refactor(css/parser): Refactor parser (#6395) 2022-11-11 07:27:19 +00:00
Alexander Akait
ec2c021255
perf(css/ast): Use Atom for raw values (#6401) 2022-11-11 01:24:11 +00:00
Alexander Akait
d18eaf1698
fix(css/parser): Fix parsing of <general-enclosed> (#6380) 2022-11-10 12:37:14 +09:00
Alexander Akait
f4832247bc
fix(css/parser): Fix parsing of supports() (#6333) 2022-11-08 01:32:48 +00:00
Alexander Akait
0bc682f529
feat(css/parser): Improve error recovery (#6336) 2022-11-03 06:30:09 +00:00
Alexander Akait
6cafeb2bcc
refactor(css/parser): Refactor even more (#6288) 2022-10-29 08:28:39 +00:00
Alexander Akait
2813acccc2
fix(css/parser): Fix various issues (#6281) 2022-10-28 04:34:23 +00:00
Alexander Akait
956d574683
feat(css/parser): Improve error reporting (#6274) 2022-10-28 03:14:08 +00:00
Alexander Akait
4c293f965b
test(css/parser): Add tests for refactoring (#6262) 2022-10-26 22:58:59 +00:00
Alexander Akait
a0e4684476
refactor(css/parser): Refactor more (#6251) 2022-10-26 19:22:27 +09:00
Donny/강동윤
6341554628
fix(css/parser): Add more error recovery (#6240) 2022-10-24 03:11:27 +00:00
Alexander Akait
ac619e88bf
refactor(css/parser): Use new approach for parsing invalid tokens (#6224)
Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
2022-10-22 04:21:40 +00:00
Alexander Akait
e63fa28008
fix(css/ast): Fix AST types for simple block (#6131) 2022-10-13 05:31:34 +00:00
Alexander Akait
85b2188204
refactor(css/ast): Refactor AST types (#6124) 2022-10-13 04:15:29 +00:00
Alexander Akait
7343cf3389
perf(atoms): Add more atoms (#6122)
Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
2022-10-11 23:52:51 +00:00
Alexander Akait
b71dd3ec05
feat(css/ast): Support <general-enclosed> for @media at-rules (#6082) 2022-10-07 14:51:53 +00:00
Jason
64694dc7d5
fix(css/parser): Report an error for invalid layer in @import (#5928) 2022-09-22 06:53:34 +00:00
Alexander Akait
2bf24195f2
feat(css/parser): Parse more math functions in @media (#5904) 2022-09-20 10:45:49 +09:00
Alexander Akait
7f62fa6227
perf(html): Reduce memory usage (#5867) 2022-09-15 04:17:05 +00:00
Alexander Akait
ccd618ce54
perf(html/minifier): Improve performance (#5838) 2022-09-13 14:01:41 +09:00
Donny/강동윤
7391cc99b1
perf(css/minifier): Use JsWord instead of &str (#5806) 2022-09-10 07:20:51 +00:00
Alexander Akait
5c28d00516
fix(css/parser): Improve parsing of media queries (#5567) 2022-08-30 03:18:43 +00:00
Alexander Akait
555b6a3734
fix(css/ast): Use list of component values for error recovery (#5467) 2022-08-13 13:05:29 +09:00
Alexander Akait
8e5efb65d5
test(css/parser): Add a test (#5228) 2022-07-17 05:56:13 +00:00
Alexander Akait
c345524e36
fix(css/parser): Improve lexer errors (#5025) 2022-06-23 03:56:13 +00:00
Alexander Akait
1b7b4f0cb4
test(css/parser): Improve tests (#4963) 2022-06-13 20:27:30 +00:00
Donny/강동윤
67942d5731
feat(common): Reserve BytePos(0) for dummy spans (#4616) 2022-05-11 16:14:42 +00:00
Alexander Akait
8b6647cf85
feat(css/parser): Improve error recovery for unknown at-rules (#4257) 2022-04-06 05:07:48 +00:00
Alexander Akait
6696a93b5c
refactor(css/ast): Union all at-rules to one at-rule in AST (#4189) 2022-04-01 20:53:23 +09:00
Edwin Coronado
57802cfcce
fix(common): Fix the line number of errors (#4082) 2022-03-19 23:56:12 +09:00
Donny/강동윤
40b8a4e596
feat(common): Implement a pretty error reporter (#3946) 2022-03-13 19:07:18 +00:00
Alexander Akait
96d6f37c20
feat(css/parser): Improve error reporting (#3999) 2022-03-13 18:37:42 +00:00
Alexander Akait
516dbc65dc
feat(css/codegen): Fix source maps and ast defs (#3974) 2022-03-11 16:54:33 +00:00
Alexander Akait
6f781c3b43
feat(css/parser): Improve error recovery (#3901) 2022-03-07 16:33:35 +00:00
Alexander Akait
c84bf133a6
feat(css): Improve error recovery (#3853) 2022-03-05 11:58:40 +00:00
Alexander Akait
f969f8c5f5
feat(css/parser): Improve error recovery (#3810) 2022-03-02 05:27:16 +00:00
Alexander Akait
9b92eba636
feat(css/ast): Allow more syntax for @supports at-rule (#3740) 2022-02-25 18:01:38 +00:00
Alexander Akait
321ee756d9
refactor(css/ast): Fix the type definitions for an plus b syntax (#3682) 2022-02-23 16:20:40 +00:00
Alexander Akait
b7dcccc748
fix(css/parser): Fix parsing of component values (#3611) 2022-02-17 14:20:17 +00:00
Alexander Akait
e97074b6c3
feat(css/ast): Use SimpleBlock in more places (#3575) 2022-02-16 12:40:16 +09:00
Alexander Akait
aed622be2f
refactor(css/ast): Rename tokens to match spec (#3553) 2022-02-14 13:05:16 +00:00