How to get the scope

To get the scope for a specific place open your sublime console with ctrl + ` and paste in this command
view.scope_name(view.sel()[0].begin()).rpartition('.')[2].strip()
You can then use that scope to set a rule in the docs dictionary(object).