Docs: add exhaustive list of scoped objects

This commit is contained in:
Delapouite 2018-04-28 17:41:24 +02:00
parent 3afa32935f
commit 8b00d763e0
2 changed files with 13 additions and 5 deletions

View File

@ -2,9 +2,17 @@
== Description == Description
Scopes are groups in which a particular Kakoune object (a variable, Scopes are groups in which a particular Kakoune object can have different
hook, alias etc) can have different values, depending on the group the values depending on the group the value was declared in.
value was declared in.
These scoped objects are:
- aliases (See <<commands#, `:doc commands`>>)
- faces (See <<faces#, `:doc faces`>>)
- highlighters (See <<highlighters#, `:doc highlighters`>>)
- hooks (See <<hooks#, `:doc hooks`>>)
- keymaps (See <<mapping#, `:doc mapping`>>)
- options (See <<options#, `:doc options`>>)
== Names and hierarchy == Names and hierarchy

View File

@ -32,7 +32,7 @@ public:
AliasRegistry& aliases() { return m_aliases; } AliasRegistry& aliases() { return m_aliases; }
const AliasRegistry& aliases() const { return m_aliases; } const AliasRegistry& aliases() const { return m_aliases; }
FaceRegistry& faces() { return m_faces; } FaceRegistry& faces() { return m_faces; }
const FaceRegistry& faces() const { return m_faces; } const FaceRegistry& faces() const { return m_faces; }
Highlighters& highlighters() { return m_highlighters; } Highlighters& highlighters() { return m_highlighters; }
const Highlighters& highlighters() const { return m_highlighters; } const Highlighters& highlighters() const { return m_highlighters; }
@ -44,7 +44,7 @@ private:
HookManager m_hooks; HookManager m_hooks;
KeymapManager m_keymaps; KeymapManager m_keymaps;
AliasRegistry m_aliases; AliasRegistry m_aliases;
FaceRegistry m_faces; FaceRegistry m_faces;
Highlighters m_highlighters; Highlighters m_highlighters;
}; };