" Vim Syntax file for apples SBPL " " Copyright 2010 Robert Malmgren AB. All rights reserved. " " Redistribution and use in source and binary forms, with or without modification, are " permitted provided that the following conditions are met: " " 1. Redistributions of source code must retain the above copyright notice, this list of " conditions and the following disclaimer. " " 2. Redistributions in binary form must reproduce the above copyright notice, this list " of conditions and the following disclaimer in the documentation and/or other materials " provided with the distribution. " " THIS SOFTWARE IS PROVIDED BY Robert Malmgren AB ``AS IS'' AND ANY EXPRESS OR IMPLIED " WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND " FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL OR " CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR " CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR " SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON " ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING " NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF " ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. " " The views and conclusions contained in the software and documentation are those of the " authors and should not be interpreted as representing official policies, either expressed " or implied, of Robert Malmgren AB. " " Written by andreas@romab.com " :runtime! syntax/scheme.vim "define version syn keyword SBPLversion version "define directives syn keyword SBPLDirectives import trace "define action syn keyword SBPLAction allow deny "define operations " file operations: syn keyword SBPLFileOperations file* file-chroot file-ioctl file-read* syn keyword SBPLFileOperations file-read-data file-read-metadata syn keyword SBPLFileOperations file-read-xattr file-revoke syn keyword SBPLFileOperations file-write* file-write-data file-write-flags syn keyword SBPLFileOperations file-write-mode file-write-mount syn keyword SBPLFileOperations file-write-owner file-write-setugid syn keyword SBPLFileOperations file-write-times file-write-unmount file-write-xattr " ipc operations: syn keyword SBPLIpcOperations ipc* ipc-posix* ipc-posix-sem ipc-posix-shm syn keyword SBPLIpcOperations ipc-sysv* ipc-sysv-msg ipc-sysv-shm " mach operations. syn keyword SBPLMachOperations mach-bootstrap mach-lookup mach-priv* syn keyword SBPLMachOperations mach-priv-host-port mach-priv-task-port syn keyword SBPLMachOperations mach-task-name mach-per-user-lookup " Network operations. syn keyword SBPLNetworkOperations network* network-inbound network-bind syn keyword SBPLNetworkOperations network-outbount " Process operations syn keyword SBPLProcessOperations process* process-exec process-fork " signals syn keyword SBPLSignalOperation signal " sysctls. syn keyword SBPLSysctlOperations sysctl* sysctl-read sysctl-write "system operations syn keyword SBPLSystemOperations system* system-acct system-audit syn keyword SBPLSystemOperations system-fsctl system-lcid system-mac-label syn keyword SBPLSystemOperations system-nfssvc system-reboot syn keyword SBPLSystemOperations system-set-time system-socket system-swap syn keyword SBPLSystemOperations system-write-bootstrap " jobs. syn keyword SBPLJobOperations job-creation " other syn keyword SBPLotherOperations default " define filters. syn keyword SBPLFilters regex subpath xattr file-mode literal " Define mach-filters syn keyword SBPLMachFilters global-name local-name global-name-regex local-name-regex " define network filters syn keyword SBPLNetworkFilters ip ip4 ip6 udp udp4 udp6 tcp tcp4 tcp6 unix unix-socket syn keyword SBPLNetworkDest local remote from to syn keyword SBPLSignalFilters self pgrp others "define modifiers syn keyword SBPLModifiers no-log no-sandbox send-signal no-profile "Constants, just signals and numbers. syn keyword SBPLSystemSignals SIGHUP SIGINT SIGQUIT SIGILL SIGTRAP SIGABRT syn keyword SBPLSystemSignals SIGPOLL SIGIOT SIGEMT SIGFPE SIGKILL SIGBUS syn keyword SBPLSystemSignals SIGSEGV SIGSYS SIGPIPE SIGALRM SIGTERM SIGURG syn keyword SBPLSystemSignals SIGSTOP SIGTSTP SIGCONT SIGCHLD SIGTTIN SIGTTOU syn keyword SBPLSystemSignals SIGIO SIGXCPU SIGXFSZ SIGVTALRM SIGPROF SIGWINCH syn keyword SBPLSystemSignals SIGINFO SIGUSR1 SIGUSR2 "So, lets start defining blinking lights. hi def link SBPLAction Statement "operations hi def link SBPLFileOperations function hi def link SBPLIpcOperations function hi def link SBPLJobOperations function hi def link SBPLMachOperations function hi def link SBPLNetworkOperations function hi def link SBPLProcessOperations function hi def link SBPLSignalOperation function hi def link SBPLSysctlOperations function hi def link SBPLSystemOperations function hi def link SBPLOtherOperations function "define filters hi def link SBPLFilters define hi def link SBPLNetworkFilters define hi def link SBPLNetworkDest string hi def link SBPLMachFilters define hi def link SBPLSignalFilters define " modifiers hi def link SBPLModifiers identifier " constants hi def link SBPLSystemSignals Constant " directive hi def link SBPLDirectives Include