Coder Social home page Coder Social logo

Comments (5)

nhooyr avatar nhooyr commented on June 12, 2024

Oddly enough, if you put a period first, autocomplete works:

Screen Shot 2019-05-10 at 7 07 22 PM

Not sure what's going on.

from ecmascript-sublime.

nhooyr avatar nhooyr commented on June 12, 2024

Emmet thinks the CSS is JSX.

Also, the scope for the CSS selectors is property-value for some reason.

Screen Shot 2019-05-10 at 7 11 07 PM

from ecmascript-sublime.

nhooyr avatar nhooyr commented on June 12, 2024

The /* syntax: css */ makes everything work properly again aside from emmet.

from ecmascript-sublime.

bathos avatar bathos commented on June 12, 2024

This is related to the fact that the autodetected styled jsx and css tags without a syntax directive do not delegate to the default sublime css definition, which borks easily when there are interpolated values in the CSS. (We might be able to fix it by tweaking the root scopes that uses, not sure.)

The use of property-value is deliberate โ€” the (formal) base CSS grammar does not distinguish between identifiers which are part of selectors vs property names, leaving it to the higher level module grammars. Those context-requiring higher level grammars are what the special simplified css syntax scoping exists to avoid; theyโ€™re what cause interpolated values to break in the built-in CSS def (which is really a stylesheet syntax def, not a general css syntax def โ€” css has several different goal symbols). In other words, itโ€™s limiting scoping to lexical constructs, so we had to pick one or the other scope for identifiers generically.

from ecmascript-sublime.

nhooyr avatar nhooyr commented on June 12, 2024

Going to close as it has been a while and I'm not sure if this is relevant anymore.

from ecmascript-sublime.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.