Commit Graph

  • 469dafd07b test for - and _ in get-function ConnorSkees 2020-05-22 20:23:35 -04:00
  • b4b2edc9a4 use Identifier for SassFunction names ConnorSkees 2020-05-22 20:13:39 -04:00
  • 2102781f62 create structure for identifiers ConnorSkees 2020-05-22 18:21:18 -04:00
  • 283a2097ff rename Value::Ident to Value::String ConnorSkees 2020-05-22 14:35:41 -04:00
  • 969726eb30 Revert string interning ConnorSkees 2020-05-22 14:20:31 -04:00
  • 3e5abf0587 remove keywords ConnorSkees 2020-05-22 14:09:28 -04:00
  • b15740976c remove superfluous allocations when resolving idents ConnorSkees 2020-05-22 13:49:19 -04:00
  • 0d52a1926e Merge branch 'master' of https://github.com/connorskees/grass ConnorSkees 2020-05-22 13:48:00 -04:00
  • 5bed62c404 keywords are thread_local ConnorSkees 2020-05-22 13:47:48 -04:00
  • face457867 remove allocation when formatting interned strings ConnorSkees 2020-05-22 13:07:24 -04:00
  • 9a6c8ce019 add string interning ConnorSkees 2020-05-21 22:45:31 -04:00
  • 3e2689a4cb improve number parsing code coverage ConnorSkees 2020-05-21 18:25:42 -04:00
  • 117dc453e2 test for toplevel @ and & ConnorSkees 2020-05-21 14:21:40 -04:00
  • ff8447fd7e handle operators as part of binops ConnorSkees 2020-05-21 14:07:46 -04:00
  • 2bd8232a00 emit proper error for toplevel " ConnorSkees 2020-05-21 13:39:37 -04:00
  • 4cba3dfd4e handle ~ in values ConnorSkees 2020-05-21 13:36:55 -04:00
  • c714d52775 handle | in values ConnorSkees 2020-05-21 13:31:03 -04:00
  • c68576bb23 refactor parsing of toplevel variables ConnorSkees 2020-05-21 13:25:37 -04:00
  • 6b9f68922f allow non-ascii alphanumeric characters in selectors ConnorSkees 2020-05-21 13:09:20 -04:00
  • b94a2403d0 fix panics related to toplevel hash and quotes ConnorSkees 2020-05-21 12:21:52 -04:00
  • 67091115db better handle - at the start of idents ConnorSkees 2020-05-21 12:06:42 -04:00
  • 709b95d035 improve span information in values ConnorSkees 2020-05-21 11:48:38 -04:00
  • 0c144e22ba handle ` in values ConnorSkees 2020-05-21 01:07:34 -04:00
  • a63e139cd8 handle ` at toplevel ConnorSkees 2020-05-21 01:04:11 -04:00
  • 28d5fdf636 handle ! at toplevel ConnorSkees 2020-05-21 01:01:02 -04:00
  • c1ed4b3121 handle , at toplevel ConnorSkees 2020-05-21 00:46:06 -04:00
  • 2faf9fcb60 improve error handling of variables in styles ConnorSkees 2020-05-21 00:41:04 -04:00
  • d300d4e1fc test for ] in value ConnorSkees 2020-05-21 00:09:52 -04:00
  • dc5df157b0 replace macro with fn ConnorSkees 2020-05-20 23:56:17 -04:00
  • fe37bab6f2 add color benchmarks ConnorSkees 2020-05-20 22:51:56 -04:00
  • 3decf3739c refactor Integer to separate file ConnorSkees 2020-05-20 22:46:26 -04:00
  • 45a29c9697 refactor Number::to_integer ConnorSkees 2020-05-20 22:40:21 -04:00
  • 38ffb5fe31 don't eat first char of loud comment ConnorSkees 2020-05-20 22:39:31 -04:00
  • 3fcd0b8be4 replace todo with unreachable to make clearer that methods should not be used ConnorSkees 2020-05-20 21:05:55 -04:00
  • de2173cc31 refactor parsing of toplevel comments ConnorSkees 2020-05-20 21:01:07 -04:00
  • 10a30b4c65 test for comma separated list as map key ConnorSkees 2020-05-20 20:35:59 -04:00
  • d39a45090a separate media and unknown at rules ConnorSkees 2020-05-20 20:13:53 -04:00
  • d61f8abd41 add benches ConnorSkees 2020-05-20 00:15:05 -04:00
  • bea90060a8 minor cleanup ConnorSkees 2020-05-20 00:14:55 -04:00
  • 8520048b26 implement small int optimizations ConnorSkees 2020-05-19 23:23:04 -04:00
  • cf987abb53 remove bimap in favor of ad hoc structure ConnorSkees 2020-05-19 19:13:49 -04:00
  • eb7fe52074 minor cleanup ConnorSkees 2020-05-19 18:28:18 -04:00
  • 017bc971b4 remove first line in readme ConnorSkees 2020-05-19 15:48:53 -04:00
  • 9a3035049a error tests for to-{upper,lower}-case ConnorSkees 2020-05-19 00:21:43 -04:00
  • dae7a5028d add map fn tests for empty lists ConnorSkees 2020-05-18 17:56:25 -04:00
  • d88ac86bd1 consolidate builtin imports ConnorSkees 2020-05-18 11:50:40 -04:00
  • f8b8025d7c fix panic when missing colon in style ConnorSkees 2020-05-17 11:09:21 -04:00
  • b58ed29fd0 add more span information ConnorSkees 2020-05-17 00:35:07 -04:00
  • 6e7f1cc319 remove some panicking ConnorSkees 2020-05-17 00:08:50 -04:00
  • eb2f3ebe5a remove ;; in tests ConnorSkees 2020-05-16 22:46:13 -04:00
  • 4ee82e66be refactor comparison ops to src/value/ops.rs ConnorSkees 2020-05-16 22:45:32 -04:00
  • c07bb7ecce refactor == and != order of operations ConnorSkees 2020-05-16 22:43:13 -04:00
  • 697ff3d12f error messages for values beginnning with # ConnorSkees 2020-05-16 19:25:11 -04:00
  • f3e7abdaba allow units to begin with escape sequences ConnorSkees 2020-05-16 18:54:42 -04:00
  • d4f67b5ed9 clippy ConnorSkees 2020-05-16 18:38:37 -04:00
  • 1fb6822259 rename register to declare ConnorSkees 2020-05-16 18:01:06 -04:00
  • a3604491e9 consolidate implementations of hsl and hsla ConnorSkees 2020-05-16 17:49:30 -04:00
  • b5a0931e45 consolidate implementations of rgb and rgba ConnorSkees 2020-05-16 17:45:04 -04:00
  • 2d0a9abb13 parse selectors that grow larger from interpolation ConnorSkees 2020-05-16 17:28:30 -04:00
  • 2db3398fe2 properly handle escaped newlines in quoted strings ConnorSkees 2020-05-16 17:20:53 -04:00
  • 09e6568c39 update rustfmt ConnorSkees 2020-05-16 16:56:17 -04:00
  • dcdd2a1cb1 edge case in which @ include had no args AND no semicolon ConnorSkees 2020-05-16 16:54:34 -04:00
  • 223dade62b Emit proper error for escape sequence overflow ConnorSkees 2020-05-16 16:22:33 -04:00
  • eea8bdbc25 allow escapes at the start of selectors ConnorSkees 2020-05-16 16:15:11 -04:00
  • 374e9f9eb4 correctly parse idents starting with interpolation ConnorSkees 2020-05-14 00:10:19 -04:00
  • 4b15b27119 refactor mixin args ConnorSkees 2020-05-13 23:56:47 -04:00
  • 0cbdc67f06 improve scoping with regard to function variables existing ConnorSkees 2020-05-13 01:32:29 -04:00
  • 425c36be86 improve tests for feature-exists ConnorSkees 2020-05-13 00:19:21 -04:00
  • 5b69ad2659 special functions are always lowercased ConnorSkees 2020-05-13 00:16:36 -04:00
  • e524867a30 bump version to 0.8.2 ConnorSkees 2020-05-11 12:59:31 -04:00
  • 2e9cd18a9d document internal fn CallArgs::decrement ConnorSkees 2020-05-06 12:19:03 -04:00
  • e5226e5cfe eat_calc_args doesn't allocate its own string ConnorSkees 2020-05-06 12:15:42 -04:00
  • edb9dde259 simplify Display on QuoteKind ConnorSkees 2020-05-06 12:07:27 -04:00
  • 1b774a9b91 simplify Unit::From<String> ConnorSkees 2020-05-06 12:01:40 -04:00
  • 01858ff543 use static strings inside unit conversion table ConnorSkees 2020-05-06 11:55:49 -04:00
  • 6729f24b17 Value::inspect returns cow ConnorSkees 2020-05-06 11:50:35 -04:00
  • 5ba28e27f3 bump version to 0.8.1 ConnorSkees 2020-05-05 19:12:49 -04:00
  • 66f24c474d fix build on wasm ConnorSkees 2020-05-05 19:12:17 -04:00
  • 004ca3a7ed bump version to 0.8.0 ConnorSkees 2020-05-05 19:02:03 -04:00
  • 648e101c49 add tests passing at the start of may ConnorSkees 2020-05-05 19:01:40 -04:00
  • 26df276266 Value::to_css_string returns a Cow<'static, str> ConnorSkees 2020-05-05 11:08:34 -04:00
  • 96e916e750 handle negative values in @for ConnorSkees 2020-05-02 15:11:58 -04:00
  • 4321a383f2 eat whitespace after silent comments ConnorSkees 2020-05-02 12:49:42 -04:00
  • 07f12b6fb4 remove unnecessary logical not ConnorSkees 2020-05-02 12:31:53 -04:00
  • 2e8126af13 prefer match over if let .. else .. ConnorSkees 2020-05-02 12:25:53 -04:00
  • 2cc655aa61 add flags for profile.release ConnorSkees 2020-05-02 12:12:19 -04:00
  • 3ca48702a1 interpolated_ident_body doesn't allocate its own string ConnorSkees 2020-05-02 11:47:49 -04:00
  • cf0cb01141 further optimize formatting of numbers ConnorSkees 2020-05-02 10:36:23 -04:00
  • 8ff334f26a we dont need to check that output buffer is valid utf8 ConnorSkees 2020-05-01 19:24:26 -04:00
  • fe92c5ed63 simplify lexing of \f and \r ConnorSkees 2020-05-01 19:16:57 -04:00
  • be6ee76486 -I takes 1 arg and --precision takes a value ConnorSkees 2020-05-01 16:06:22 -04:00
  • 67bee201de add -t alias for style ConnorSkees 2020-05-01 15:57:37 -04:00
  • d5169b2e23 add hidden cli arg --precision ConnorSkees 2020-05-01 15:48:08 -04:00
  • 05b78a3ddd add profiling feature ConnorSkees 2020-05-01 15:43:43 -04:00
  • 1326e8f000 add all commandline flags/args from dart-sass ConnorSkees 2020-05-01 14:16:40 -04:00
  • daf7f247cf refactor iteration over intermediate values ConnorSkees 2020-05-01 03:13:20 -04:00
  • 4d17c24514 replace some indexing with .get() ConnorSkees 2020-04-30 19:59:13 -04:00
  • 1d518efeaf refactor lowercasing of idents ConnorSkees 2020-04-30 19:37:14 -04:00
  • 0aed492123 move builtin fns to outer scope to reduce nesting ConnorSkees 2020-04-30 19:36:34 -04:00
  • 170759239a simplify declaration of rgb fns ConnorSkees 2020-04-30 19:04:32 -04:00