diff options
author | Kyle Evans <kevans@FreeBSD.org> | 2018-02-20 14:45:58 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2018-02-20 14:45:58 +0000 |
commit | b57465454b35f6e24a6df02a93a27d0136c016d9 (patch) | |
tree | 04ba42bcc2601cb507676e03853080150729db6e /stand/lua/core.lua | |
parent | e15abd1f164933eae0c5ddcc6cfebe5fbff1a85c (diff) | |
download | src-b57465454b35f6e24a6df02a93a27d0136c016d9.tar.gz src-b57465454b35f6e24a6df02a93a27d0136c016d9.zip |
stand/lua: Consistently organize modules
We follow pretty closely the following structure of a module:
1. Copyright notice
2. Module requires
3. Module local declarations
4. Module local definitions
5. Module exports
6. return
Re-organize the one-offs (config/drawer) and denote the start of module
exports with a comment.
Notes
Notes:
svn path=/head/; revision=329641
Diffstat (limited to 'stand/lua/core.lua')
-rw-r--r-- | stand/lua/core.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/stand/lua/core.lua b/stand/lua/core.lua index ee84e9628a2d..043b08be3b68 100644 --- a/stand/lua/core.lua +++ b/stand/lua/core.lua @@ -30,6 +30,7 @@ local config = require('config'); local core = {}; +-- Module exports -- Commonly appearing constants core.KEY_BACKSPACE = 8; core.KEY_ENTER = 13; |