brightscript
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
brightscript [2015/09/12 19:22] – dblume | brightscript [2023/04/12 20:44] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 2: | Line 2: | ||
Here are some BrightScript tips. | Here are some BrightScript tips. | ||
+ | |||
+ | ===== tags ===== | ||
+ | |||
+ | Make [[https:// | ||
+ | |||
+ | Add this to your $HOME/ | ||
+ | |||
+ | < | ||
+ | --langdef=BrightScript | ||
+ | --langmap=BrightScript: | ||
+ | --regex-BrightScript=/ | ||
+ | --regex-BrightScript=/ | ||
+ | --regex-BrightScript=/ | ||
+ | </ | ||
+ | |||
+ | Then, run ctags from the channel' | ||
+ | |||
+ | <code bash> | ||
+ | #/bin/bash | ||
+ | set -eu -o pipefail # See: https:// | ||
+ | |||
+ | # Make the tags file at the project root | ||
+ | ctags -n --if0=yes --c++-kinds=+p --file-tags=yes -R \ | ||
+ | --links=no --extra=fq \ | ||
+ | --exclude=' | ||
+ | |||
+ | # Append to it symbols from the BrightScript SDK | ||
+ | ctags --append=yes -n --if0=yes --c++-kinds=+p --file-tags=yes -R \ | ||
+ | | ||
+ | | ||
+ | # | ||
+ | |||
+ | # Then do the tags in /source and its subdirectories | ||
+ | find . -mindepth 1 \ | ||
+ | ' | ||
+ | -or ' | ||
+ | do | ||
+ | pushd " | ||
+ | ctags -n --if0=yes --c++-kinds=+p --file-tags=yes -R \ | ||
+ | --links=no --extra=fq | ||
+ | popd 1> /dev/null | ||
+ | done | ||
+ | |||
+ | # Finally, there' | ||
+ | # find . -name tags -size -2 -mtime -1 -print | xargs rm | ||
+ | find . -name tags -size -2 -mtime -1 -delete | ||
+ | </ | ||
+ | |||
+ | ===== Sublime Text 3 ===== | ||
On a Windows system, here's a template Sublime project: | On a Windows system, here's a template Sublime project: | ||
Line 13: | Line 62: | ||
" | " | ||
" | " | ||
- | " | + | " |
}, | }, | ||
" | " | ||
- | " | + | " |
}, | }, | ||
" | " | ||
- | " | + | " |
} | } | ||
} | } | ||
Line 41: | Line 90: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | ==== Syntax Highlighting ==== | ||
+ | |||
+ | BrightScript Language Definition Bundle for Sublime Text 2 is available here: [[https:// | ||
+ | |||
+ | Once you've git cloned the project, remove the extra git-only files, and zip it up to BrightScript.sublime-package. | ||
+ | |||
+ | < | ||
+ | $ rm TODO | ||
+ | $ rm .gitignore | ||
+ | $ rm -rf .git | ||
+ | $ cd .. | ||
+ | $ zip BrightScript.sublime-package BrightScript.tmbundle/ | ||
+ | </ | ||
+ | |||
+ | ===== Vim ===== | ||
+ | |||
+ | Add [[https:// | ||
+ |
brightscript.1442110924.txt.gz · Last modified: 2023/04/12 20:44 (external edit)