No, it's not at the moment. Due to the ambiguity of parsing stuff like "foo:bar baz bang blah blah blah" (which could be a selector or a property, and which can't be decided for an arbitrary length of time), SCSS is not strictly context-free, so a BNF grammar can't be complete. However, it's *mostly* context-free, so it probably would be worth writing something up. I'll try to do so once I have some time away from implementing (probably post-3.0).
For now, you may be able to glean some insights from lib/sass/scss/parser.rb. It's written in a way that largely mirrors the structure of the grammar, so you might find that helpful. On Tue, Apr 13, 2010 at 6:26 AM, Matt Martini <[email protected]> wrote: > Guys, > > A while back I created clippings library for BBEdit for Sass (with support > for Compass/Blueprint). It is available at: > > http://www.barebones.com/support/bbedit/clippings_library.html#sass > > I am in the process of updating it for Sass3 and I would like to add syntax > highlighting for Sass/Sccs/Haml. Is the > syntax formally defined anywhere. Say in BNF format or something similar? > This would help in creating the syntax > coloring rules. > > Thanks, > > Matt > > -- > You received this message because you are subscribed to the Google Groups > "Haml" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/haml?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/haml?hl=en.
