question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Optimistic shorthand parsing?

See original GitHub issue

I’m having trouble using shorthand like border: 0;.

I use this config:

    'scale-unlimited/declaration-strict-value': [
      [
        '/color/',
        'fill',
        'stroke',
      ], {
        ignoreValues: [
          'currentColor',
          'transparent',
          'inherit',
        ],
      }
    ],

If i use expandShorthand: true option, I have warning Expected variable, function or keyword for "0" of "border". But, if i don’t use this option, I loss warning, like for border: 1px solid #eee;.

Want to make an option for optimistic parsing?

Or I didn’t find it in the documentation, then sorry 😖

Thanks in advance for your reply!)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
AndyOGocommented, Oct 29, 2020

Hi @ariarzer I just released a patch version v1.6.1. This should be now working for you.

1reaction
ariarzercommented, Oct 29, 2020

Thanks you very much!

Read more comments on GitHub >

github_iconTop Results From Across the Web

optimism | chickadee
This allows the following shorthand syntax for aliases, where multiple options should have the same form: (parse-command-line '(((-f --foo) . bar))) ...
Read more >
SRP_Date Parse - SRP Utilities - SRP Wiki
This service provides a very optimistic parser that can successfully parse any well formed date, ... Typically, people prefer to use shorthand.
Read more >
Bug: async not highlighted in object method shorthand notation ...
If an async function is declared using the object method shorthand (i.e. ... We're pretty optimistic about CodeMirror 6's Lezer parser system being...
Read more >
Review Lecture Introduction Lexical analysis Parsing ...
Parsing. Semantic analysis. (Intermediate) Code generation. Intermediate Representations ... This is just a shorthand ... is an optimistic algorithm.
Read more >
Some thoughts (and requests) about how CM6 schedules ...
The parser runs a tokenizer -> parser loop. The tokenizer is given a string, some positional data, and it returns a list of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found