Commit graph

87 commits

Author SHA1 Message Date
Ayaz Hafiz
e293a8d4fa
Format Num, Str and fix off-by-one bug 2022-05-18 15:26:21 -04:00
Folkert
970b2c94f2
fix conditional compilation 2022-05-18 01:36:56 +02:00
Folkert
381f188409
fix import 2022-05-18 00:57:07 +02:00
Folkert
500382c900
use simd on supported platforms 2022-05-18 00:54:54 +02:00
Folkert
c6abb0e129
fix tab position 2022-05-16 22:30:29 +02:00
Folkert
256e7adaff
move colum state over 2022-05-16 21:39:57 +02:00
Folkert
1a49930d1d
simplifications 2022-05-15 22:00:47 +02:00
Folkert
225254d7e5
fix math 2022-05-15 21:49:10 +02:00
Folkert
65e842f64a
do a fast pass first to exit early if the spaces will not be parsed 2022-05-15 21:15:02 +02:00
Folkert
c6b13984ed
direct indexing into the slice 2022-05-15 00:17:12 +02:00
Folkert
8f97c217a5
logic base 2022-05-15 00:06:33 +02:00
Folkert
2e3a8befc9
another inline 2022-05-14 23:51:06 +02:00
Folkert
9f2906a2f8
use while let 2022-05-14 23:46:52 +02:00
Folkert
d9977b73aa
inline function 2022-05-14 23:44:51 +02:00
Joshua Warner
f440d53e7b Refactor: introduce trait SpaceProblem to remove a bunch of redundant args in ::Space errors 2022-02-15 20:48:04 -08:00
Joshua Warner
cb8cf44596 fmt 2022-01-01 18:20:05 -08:00
Joshua Warner
70156b0a90 Simplify advancing 2022-01-01 18:20:05 -08:00
Joshua Warner
2901549422 Assert new column calculation is correct 2022-01-01 18:20:05 -08:00
Joshua Warner
422cdea112 Track line start separately 2022-01-01 18:20:05 -08:00
Joshua Warner
5ac3394a73 Remove pos tracking 2022-01-01 18:20:05 -08:00
Joshua Warner
08a33aab1b Remove bytes tracking 2022-01-01 18:20:05 -08:00
Joshua Warner
beb0629e05 Track state in whitespace 2022-01-01 18:20:05 -08:00
Joshua Warner
a13c474f6b Remove line tracking in parser 2022-01-01 18:20:05 -08:00
Joshua Warner
1b257da356 Make State::xyzlcol a LineColumn, and change everything wanting a Position to use State::pos() instead 2022-01-01 18:20:05 -08:00
Joshua Warner
d2dcb462c7 Rename State::pos -> xyzlcol, temporarily 2022-01-01 18:20:05 -08:00
Joshua Warner
22e2545fd6 format 2021-12-22 20:46:42 -08:00
Joshua Warner
f170509bf1 rename col -> column 2021-12-22 20:37:40 -08:00
Joshua Warner
4d7070ce3b Always combine line,column into Position 2021-12-22 20:32:46 -08:00
Joshua Warner
f19220473a Rename Located -> Loc 2021-12-22 19:18:22 -08:00
Joshua Warner
49818343dd extract state 2021-12-16 17:13:53 -08:00
Joshua Warner
f3dd9e411f Keep trailing comments at the end of a file 2021-12-05 12:19:58 -08:00
Joshua Warner
6a30e422da Remove unused spaces_till_end_of_line / chomp_line_comment functions from the parser 2021-11-02 20:28:16 -07:00
Folkert
e85540e5f5 fix more indent problems 2021-04-05 14:31:50 +02:00
Folkert
c8e554e119 fix indent issue when parsing tag unions 2021-04-05 14:10:49 +02:00
Folkert
2a0c5c669b fiddling with the when parser 2021-03-24 22:55:01 +01:00
Folkert
2fc9d20867 cleanup 2021-03-17 21:14:19 +01:00
Folkert
361eb25562 cleanup 2021-03-13 22:39:50 +01:00
Folkert
c26fd45d54 all is working again 2021-03-13 22:36:44 +01:00
Folkert
703a8de72f basic structure 2021-03-12 22:21:27 +01:00
Folkert
fd5ab353db clippy 2021-03-12 03:46:52 +01:00
Folkert
f5f98b2400 clippy 2021-03-12 03:43:39 +01:00
Folkert
f7744b4caa remove is_indenting 2021-03-12 02:38:46 +01:00
Folkert
222638e9bb confirm is_indenting is not needed 2021-03-12 02:28:57 +01:00
Folkert
c938a93dea fix comment newline chomping issue 2021-03-12 02:24:00 +01:00
Folkert
5e4db62c46 remove Attempting and more 2021-03-12 02:09:48 +01:00
Folkert
4f58c792e6 removing old stuff 2021-03-12 01:37:27 +01:00
Folkert
f5d3845b14 remove unused functions 2021-03-12 01:15:44 +01:00
Folkert
9265cf82b9 more cleanup 2021-03-12 01:11:34 +01:00
Folkert
0bc1a0e50b cleanup 2021-03-12 00:41:28 +01:00
Folkert
cffb8094b8 also use new parser for space1 2021-03-12 00:37:58 +01:00