aqzhyi / Sublime-Better-Completion

手刻的浪漫 DEPRECATED, use TypeScript!
338 stars 75 forks source link

Scope not clear to me.. #18

Closed Tomarnst closed 8 years ago

Tomarnst commented 10 years ago

Great stuff this auto-completion plugin! Only one thing is not totally clear for me...

"scope": "text.html - source - punctuation.definition.tag.classes",

What does this mean and when two API-completions files have the same scope will this give a conflict ?

Thanks

aqzhyi commented 10 years ago

Scope selector determining the context where the snippet will be active.

http://sublime-text-unofficial-documentation.readthedocs.org/en/latest/extensibility/syntaxdefs.html#scopes-and-scope-selectors

ctf0 commented 10 years ago

is it possible to specify an attribute where the compilation should be triggered , what i mean is i want the auto-comp to ignore an attr like (src="") but still work on (class="" ) ,could that be done ?

Edit: scratch the above ,its totally up to the scopes in the syntax file ,have nothing to do with the plugin.