;ELC ;;; Compiled ;;; in Emacs version 28.0.50 ;;; with all optimizations. (byte-code "\300\301!\210\300\302!\210\300\303!\210\300\304!\210\300\305!\210\300\306!\210\300\307!\210\300\310!\207" [require cl-lib subr-x js dash xref hydra imenu easymenu] 2) (defvar v-mode-hook nil) (defconst v-mode-syntax-table (byte-code "\300 \301\211\203\211@\302\303#\210A\266\202\202\210\302\304\305#\210\302\306\307#\210\302\310\311#\210\302\312\313#\210\302\314\313#\210\302\315\313#\210\302\316\317#\210\207" [make-syntax-table (43 45 42 47 37 38 124 61 33 60 62) modify-syntax-entry "." 47 ". 124" 42 ". 23bn" 10 ">" 96 "\"" 39 34 95 "w"] 7)) #@26 Keymap for V major mode. (defvar v-mode-map (byte-code "\300 \301\302\303#\210\207" [make-keymap define-key "\n" newline-and-indent] 5) (#$ . 659)) #@22 V language keywords. (defconst v-keywords '("if" "else" "for" "match") (#$ . 814)) (byte-code "\300\301\302\303\304\305\306\307&\210\310\311\312\313\314DD\315\316\317\306\301&\210\310\320\312\313\321DD\322\316\323\306\301&\210\310\324\312\313\325DD\326\316\327\306\301&\210\310\330\312\313\331DD\332\316\333\306\301&\210\310\334\312\313\335DD\336\316\337\306\301&\210\310\340\312\313\341DD\342\316\343\306\301&\207" [custom-declare-group v-mode nil "Major mode for editing V code." :prefix "v-" :group languages custom-declare-variable v-declaration-keywords funcall function #[0 "\300\207" [("type" "interface" "struct" "enum" "fn")] 1] "V declaration keywords." :type (repeat string) v-preprocessor-keywords #[0 "\300\207" [("module" "pub" "const")] 1] "V preprocessor keywords." (repeat string) v-careful-keywords #[0 "\300\207" [("import" "break" "continue" "return" "goto" "defer" "panic" "error" "in" "is" "or" "go" "inline" "live" "as" "assert" "unsafe" "mut" "__global" "C")] 1] "V language careful keywords." (repeat string) v-builtin-keywords #[0 "\300\207" [("string" "bool" "i8" "i16" "int" "i64" "i128" "byte" "u16" "u32" "u64" "u128" "rune" "f32" "f64" "byteptr" "voidptr" "charptr" "size_t" "any" "any_int" "any_float" "it")] 1] "V language keywords." (repeat string) v-constants #[0 "\300\207" [("false" "true" "none")] 1] "Common constants." (repeat string) v-operator-functions #[0 "\300\207" [nil] 1] "V language operators functions." (repeat string)] 8) #@43 Regular expression for matching keywords. (defconst v-keywords-regexp (regexp-opt v-keywords 'words) (#$ . 2301)) #@55 Regular expression for matching declaration keywords. (defconst v-declaration-keywords-regexp (regexp-opt v-declaration-keywords 'words) (#$ . 2421)) #@56 Regular expression for matching preprocessor keywords. (defconst v-preprocessor-keywords-regexp (regexp-opt v-preprocessor-keywords 'words) (#$ . 2577)) #@51 Regular expression for matching careful keywords. (defconst v-careful-keywords-regexp (regexp-opt v-careful-keywords 'words) (#$ . 2736)) #@47 Regular expression for matching builtin type. (defconst v-builtin-keywords-regexp (regexp-opt v-builtin-keywords 'words) (#$ . 2880)) #@44 Regular expression for matching constants. (defconst v-constant-regexp (regexp-opt v-constants 'words) (#$ . 3020)) #@53 Regular expression for matching operator functions. (defconst v-operator-functions-regexp (regexp-opt v-operator-functions 'words) (#$ . 3142)) #@46 An alist mapping regexes to font-lock faces. (defvar v-font-lock-keywords (byte-code "\306B \307B\310\n\311B \312B\313\314\315\316\317\320\321\f\306B\322\323 \324B\325\326\327\330\311B\331BBBBBBBBBBBBBBBBBBBBB\207" [v-builtin-keywords-regexp v-careful-keywords-regexp v-declaration-keywords-regexp v-preprocessor-keywords-regexp v-operator-functions-regexp v-constant-regexp font-lock-builtin-face font-lock-warning-face ("[@#$][A-Za-z_]*[A-Z-a-z0-9_]*" quote font-lock-warning-face) font-lock-keyword-face font-lock-preprocessor-face ("\\(->\\|=>\\|\\.>\\|:>\\|:=\\|\\.\\.\\||\\)" 1 'font-lock-keyword-face) ("\\($?[.,;]+\\)" 1 'font-lock-comment-delimiter-face) ("\\($?[+-/*//%~=<>]+\\)$?,?" 1 'font-lock-negation-char-face) ("\\($?[?^!&]+\\)" 1 'font-lock-warning-face) ("[^+-/*//%~^!=<>]\\([=:]\\)[^+-/*//%~^!=<>]" 1 'font-lock-comment-delimiter-face) ("\\(\\[\\|\\]\\|[(){}]\\)" 1 'font-lock-comment-delimiter-face) ("[ /+-/*//=><([{,;&|%]\\([0-9][A-Za-z0-9_]*\\)" 1 'font-lock-constant-face) ("\\(?:fn\\) +\\($?[a-z_][A-Za-z0-9_]*\\)" 1 'font-lock-function-name-face) ("\\([A-Z][A-Za-z0-9_]*\\)" 1 'font-lock-type-face) font-lock-constant-face ("\\([a-z_]$?[a-z0-9_]?+\\)$?[ ]?(+" 1 'font-lock-function-name-face) ("\\(?:(\\|,\\)\\([a-z_][a-z0-9_']*\\)\\([^ \n,:)]*\\)" 1 'font-lock-variable-name-face) ("\\(?:(\\|,\\)[ ]+\\([a-z_][a-z0-9_']*\\)\\([^ \n,:)]*\\)" 1 'font-lock-variable-name-face) ("[.]$?[ ]?\\($?_[1-9]$?[0-9]?*\\)" 1 'font-lock-variable-name-face) (("\\('[\\].'\\)" 1 'font-lock-constant-face) ("\\($?_?[a-z]+[a-z_0-9]*\\)" 1 'font-lock-variable-name-face)) v-keywords-regexp] 22) (#$ . 3292)) #@71 Return t if directory `PATH' is the root of the V project. (fn PATH) (defalias 'v-project-root-p #[257 "\300\301G\302V\203 \211\204 @\303!PA\262\304!\266\203\202\207" [("v.mod" "make.bat" "Makefile" "Dockerfile" ".editorconfig" ".gitignore" ".git" ".svn" ".hg" ".bzr") nil 0 file-name-as-directory file-exists-p] 7 (#$ . 4926)]) #@81 Return the root of the V project. Optional argument PATH . (fn &optional PATH) (defalias 'v-project-root #[256 "\203\n\302!\202 \203\303!\202\211\302\304!!\211\203;\211\230\204;\211\303\305\306!!\230\204;\211\307\230\204;\310!\203=\207\311!\207" [buffer-file-name default-directory file-name-directory file-name-as-directory directory-file-name getenv "HOME" "/" v-project-root-p v-project-root] 8 (#$ . 5273)]) #@24 Return V project name. (defalias 'v-project-name #[0 "\300\301\302 !!\207" [file-name-base directory-file-name v-project-root] 3 (#$ . 5713)]) #@52 Return t if file `FILENAME' exists. (fn FILENAME) (defalias 'v-project-file-exists-p #[257 "\300\301 P!\207" [file-exists-p v-project-root] 4 (#$ . 5862)]) #@102 Return `COMMAND' in the root of the V project. Optional argument PATH . (fn COMMAND &optional PATH) (defalias 'v-run-command #[513 "\203 \202\f\301!\302!\210\211\211\207" [default-directory v-project-root compile] 5 (#$ . 6027)]) #@23 Build project with v. (defalias 'v-project-build #[0 "\300\301!\203\n\302\303!\207\302\304!\207" [v-project-file-exists-p "Makefile" v-run-command "make" "v ."] 2 (#$ . 6273) nil]) #@23 Run v `init' command. (defalias 'v-project-init #[0 "\300\301!?\205\n\302\303!\207" [v-project-file-exists-p "v.mod" v-run-command "v init"] 2 (#$ . 6461) nil]) #@25 Run v `update' command. (defalias 'v-project-update #[0 "\300\301!\205 \302\303!\207" [v-project-file-exists-p "v.mod" v-run-command "v update"] 2 (#$ . 6629) nil]) #@20 Open `v.mod' file. (defalias 'v-project-open #[0 "\300\301!\205\f\302\303 \301P!\207" [v-project-file-exists-p "v.mod" find-file v-project-root] 3 (#$ . 6801) nil]) #@44 Return current buffer directory file name. (defalias 'v-buffer-dirname #[0 "\302\203 \303!\202\f !\207" [buffer-file-name default-directory directory-file-name file-name-directory] 3 (#$ . 6973)]) #@14 Run project. (defalias 'v-project-run #[0 "\300 \301\302 Q\300 \303\302 Q\304 \303\302 Q\305!\203\306!\207\305!\203&\306!\207\305!\205/\306!\207" [v-project-root "bin/" v-project-name "/" v-buffer-dirname file-exists-p v-run-command] 5 (#$ . 7180) nil]) #@18 Menu for V mode. (defvar v-mode-menu nil (#$ . 7450)) (easy-menu-do-define 'v-mode-menu v-mode-map "Menu for V mode." '("V" ["Build" v-project-build t] ["Run" v-project-run t] ["Init" v-project-init t] ["Open" v-project-open t] ["Update" v-project-update t] "---" ("Community" ["News" (v-run-command "xdg-open https://twitter.com/v_language") t] ["Discord" (v-run-command "xdg-open https://discord.gg/vlang") t] ["Open an issue" (v-run-command "xdg-open https://github.com/vlang/v/issues") t] ["Tutorial" (v-run-command "xdg-open https://github.com/vlang/v/blob/master/doc/docs.md") t] ["Awesome-V" ("xdg-open https://github.com/vlang/awesome-v") t] ["Contribute" (v-run-command "xdg-open https://github.com/vlang/v/blob/master/CONTRIBUTING.md") t] ["Supporter" (v-run-command "xdg-open https://patreon.com/vlang") t]))) #@11 V banner. (defalias 'v-banner-default #[0 "\300\207" ["\n __ __\n \\ \\ / /\n \\ V /\n \\_/\n"] 1 (#$ . 8277)]) (byte-code "\300\301!\302L\210\303\301!\304L\210\305\301!\306L\210\307\301!\310L\210\311\301!\312L\207" [(lambda (def-tmp-var) (defvar v-hydra-menu/params def-tmp-var "Params of v-hydra-menu.")) nil (nil nil :exit t :foreign-keys nil :hint none) (lambda (def-tmp-var) (defvar v-hydra-menu/docstring def-tmp-var "Docstring of v-hydra-menu.")) "\n%s(v-banner-default)\n Project | _i_: Init _u_: Update _o_: v.mod\n | _b_: Build _r_: Run\n Community | _1_: News _2_: Discord _3_: OpenIssue\n | _4_: Tutorial _5_: Awesome-V _6_: Sponsors _0_: Contribute\n _q_: Quit" (lambda (def-tmp-var) (defvar v-hydra-menu/heads def-tmp-var "Heads for v-hydra-menu.")) (("b" v-project-build "Build" :exit t) ("r" v-project-run "Run" :exit t) ("o" v-project-open "Open v.mod" :exit t) ("i" v-project-init "v init" :exit t) ("u" v-project-update "v udate" :exit t) ("1" (v-run-command "xdg-open https://twitter.com/v_language") "News" :exit t) ("2" (v-run-command "xdg-open https://discord.gg/vlang") "Discord" :exit t) ("3" (v-run-command "xdg-open https://github.com/vlang/v/issues") "Open an issue" :exit t) ("4" (v-run-command "xdg-open https://github.com/vlang/v/blob/master/doc/docs.md") "Docs" :exit t) ("5" (v-run-command "xdg-open https://github.com/vlang/awesome-v") "Awesome-V" :exit t) ("6" (v-run-command "xdg-open https://patreon.com/vlang") "Supporter" :exit t) ("0" (v-run-command "xdg-open https://github.com/vlang/v/blob/master/CONTRIBUTING.md") "Contribute" :exit t) ("q" nil "Quit" :exit t)) (lambda (def-tmp-var) (defvar v-hydra-menu/keymap def-tmp-var "Keymap for v-hydra-menu.")) (keymap (113 . v-hydra-menu/nil) (117 . v-hydra-menu/v-project-update-and-exit) (105 . v-hydra-menu/v-project-init-and-exit) (111 . v-hydra-menu/v-project-open-and-exit) (114 . v-hydra-menu/v-project-run-and-exit) (98 . v-hydra-menu/v-project-build-and-exit) (kp-subtract . hydra--negative-argument) (kp-9 . hydra--digit-argument) (kp-8 . hydra--digit-argument) (kp-7 . hydra--digit-argument) (kp-6 . hydra--digit-argument) (kp-5 . hydra--digit-argument) (kp-4 . hydra--digit-argument) (kp-3 . hydra--digit-argument) (kp-2 . hydra--digit-argument) (kp-1 . hydra--digit-argument) (kp-0 . hydra--digit-argument) (57 . hydra--digit-argument) (56 . hydra--digit-argument) (55 . hydra--digit-argument) (54 . v-hydra-menu/lambda-6-and-exit) (53 . v-hydra-menu/lambda-5-and-exit) (52 . v-hydra-menu/lambda-4-and-exit) (51 . v-hydra-menu/lambda-3-and-exit) (50 . v-hydra-menu/lambda-2-and-exit) (49 . v-hydra-menu/lambda-1-and-exit) (48 . v-hydra-menu/lambda-0-and-exit) (45 . hydra--negative-argument) (21 . hydra--universal-argument)) (lambda (def-tmp-var) (defvar v-hydra-menu/hint def-tmp-var "Dynamic hint for v-hydra-menu.")) (format "%s\n Project | %s: Init %s: Update %s: v.mod\n | %s: Build %s: Run\n Community | %s: News %s: Discord %s: OpenIssue\n | %s: Tutorial %s: Awesome-V %s: Sponsors %s: Contribute\n %s: Quit" (v-banner-default) #("i" 0 1 (face hydra-face-blue)) #("u" 0 1 (face hydra-face-blue)) #("o" 0 1 (face hydra-face-blue)) #("b" 0 1 (face hydra-face-blue)) #("r" 0 1 (face hydra-face-blue)) #("1" 0 1 (face hydra-face-blue)) #("2" 0 1 (face hydra-face-blue)) #("3" 0 1 (face hydra-face-blue)) #("4" 0 1 (face hydra-face-blue)) #("5" 0 1 (face hydra-face-blue)) #("6" 0 1 (face hydra-face-blue)) #("0" 0 1 (face hydra-face-blue)) #("q" 0 1 (face hydra-face-blue)))] 2) #@824 Call the head `v-project-build' in the "v-hydra-menu" hydra. The heads for the associated hydra are: "b": `v-project-build', "r": `v-project-run', "o": `v-project-open', "i": `v-project-init', "u": `v-project-update', "1": `(v-run-command "xdg-open https://twitter.com/v_language")', "2": `(v-run-command "xdg-open https://discord.gg/vlang")', "3": `(v-run-command "xdg-open https://github.com/vlang/v/issues")', "4": `(v-run-command "xdg-open https://github.com/vlang/v/blob/master/doc/docs.md")', "5": `(v-run-command "xdg-open https://github.com/vlang/awesome-v")', "6": `(v-run-command "xdg-open https://patreon.com/vlang")', "0": `(v-run-command "xdg-open https://github.com/vlang/v/blob/master/CONTRIBUTING.md")', "q": `nil' The body can be accessed via `v-hydra-menu/body'. (defalias 'v-hydra-menu/v-project-build-and-exit #[0 "\302\303!\210\304 \210\305 \210\306\307\310\307!\207" [hydra-curr-body-fn this-command require hydra hydra-default-pre hydra-keyboard-quit v-hydra-menu/body v-project-build hydra--call-interactively-remap-maybe] 2 (#$ . 11901) nil]) #@822 Call the head `v-project-run' in the "v-hydra-menu" hydra. The heads for the associated hydra are: "b": `v-project-build', "r": `v-project-run', "o": `v-project-open', "i": `v-project-init', "u": `v-project-update', "1": `(v-run-command "xdg-open https://twitter.com/v_language")', "2": `(v-run-command "xdg-open https://discord.gg/vlang")', "3": `(v-run-command "xdg-open https://github.com/vlang/v/issues")', "4": `(v-run-command "xdg-open https://github.com/vlang/v/blob/master/doc/docs.md")', "5": `(v-run-command "xdg-open https://github.com/vlang/awesome-v")', "6": `(v-run-command "xdg-open https://patreon.com/vlang")', "0": `(v-run-command "xdg-open https://github.com/vlang/v/blob/master/CONTRIBUTING.md")', "q": `nil' The body can be accessed via `v-hydra-menu/body'. (defalias 'v-hydra-menu/v-project-run-and-exit #[0 "\302\303!\210\304 \210\305 \210\306\307\310\307!\207" [hydra-curr-body-fn this-command require hydra hydra-default-pre hydra-keyboard-quit v-hydra-menu/body v-project-run hydra--call-interactively-remap-maybe] 2 (#$ . 13020) nil]) #@823 Call the head `v-project-open' in the "v-hydra-menu" hydra. The heads for the associated hydra are: "b": `v-project-build', "r": `v-project-run', "o": `v-project-open', "i": `v-project-init', "u": `v-project-update', "1": `(v-run-command "xdg-open https://twitter.com/v_language")', "2": `(v-run-command "xdg-open https://discord.gg/vlang")', "3": `(v-run-command "xdg-open https://github.com/vlang/v/issues")', "4": `(v-run-command "xdg-open https://github.com/vlang/v/blob/master/doc/docs.md")', "5": `(v-run-command "xdg-open https://github.com/vlang/awesome-v")', "6": `(v-run-command "xdg-open https://patreon.com/vlang")', "0": `(v-run-command "xdg-open https://github.com/vlang/v/blob/master/CONTRIBUTING.md")', "q": `nil' The body can be accessed via `v-hydra-menu/body'. (defalias 'v-hydra-menu/v-project-open-and-exit #[0 "\302\303!\210\304 \210\305 \210\306\307\310\307!\207" [hydra-curr-body-fn this-command require hydra hydra-default-pre hydra-keyboard-quit v-hydra-menu/body v-project-open hydra--call-interactively-remap-maybe] 2 (#$ . 14133) nil]) #@823 Call the head `v-project-init' in the "v-hydra-menu" hydra. The heads for the associated hydra are: "b": `v-project-build', "r": `v-project-run', "o": `v-project-open', "i": `v-project-init', "u": `v-project-update', "1": `(v-run-command "xdg-open https://twitter.com/v_language")', "2": `(v-run-command "xdg-open https://discord.gg/vlang")', "3": `(v-run-command "xdg-open https://github.com/vlang/v/issues")', "4": `(v-run-command "xdg-open https://github.com/vlang/v/blob/master/doc/docs.md")', "5": `(v-run-command "xdg-open https://github.com/vlang/awesome-v")', "6": `(v-run-command "xdg-open https://patreon.com/vlang")', "0": `(v-run-command "xdg-open https://github.com/vlang/v/blob/master/CONTRIBUTING.md")', "q": `nil' The body can be accessed via `v-hydra-menu/body'. (defalias 'v-hydra-menu/v-project-init-and-exit #[0 "\302\303!\210\304 \210\305 \210\306\307\310\307!\207" [hydra-curr-body-fn this-command require hydra hydra-default-pre hydra-keyboard-quit v-hydra-menu/body v-project-init hydra--call-interactively-remap-maybe] 2 (#$ . 15249) nil]) #@825 Call the head `v-project-update' in the "v-hydra-menu" hydra. The heads for the associated hydra are: "b": `v-project-build', "r": `v-project-run', "o": `v-project-open', "i": `v-project-init', "u": `v-project-update', "1": `(v-run-command "xdg-open https://twitter.com/v_language")', "2": `(v-run-command "xdg-open https://discord.gg/vlang")', "3": `(v-run-command "xdg-open https://github.com/vlang/v/issues")', "4": `(v-run-command "xdg-open https://github.com/vlang/v/blob/master/doc/docs.md")', "5": `(v-run-command "xdg-open https://github.com/vlang/awesome-v")', "6": `(v-run-command "xdg-open https://patreon.com/vlang")', "0": `(v-run-command "xdg-open https://github.com/vlang/v/blob/master/CONTRIBUTING.md")', "q": `nil' The body can be accessed via `v-hydra-menu/body'. (defalias 'v-hydra-menu/v-project-update-and-exit #[0 "\302\303!\210\304 \210\305 \210\306\307\310\307!\207" [hydra-curr-body-fn this-command require hydra hydra-default-pre hydra-keyboard-quit v-hydra-menu/body v-project-update hydra--call-interactively-remap-maybe] 2 (#$ . 16365) nil]) #@866 Call the head `(v-run-command "xdg-open https://twitter.com/v_language")' in the "v-hydra-menu" hydra. The heads for the associated hydra are: "b": `v-project-build', "r": `v-project-run', "o": `v-project-open', "i": `v-project-init', "u": `v-project-update', "1": `(v-run-command "xdg-open https://twitter.com/v_language")', "2": `(v-run-command "xdg-open https://discord.gg/vlang")', "3": `(v-run-command "xdg-open https://github.com/vlang/v/issues")', "4": `(v-run-command "xdg-open https://github.com/vlang/v/blob/master/doc/docs.md")', "5": `(v-run-command "xdg-open https://github.com/vlang/awesome-v")', "6": `(v-run-command "xdg-open https://patreon.com/vlang")', "0": `(v-run-command "xdg-open https://github.com/vlang/v/blob/master/CONTRIBUTING.md")', "q": `nil' The body can be accessed via `v-hydra-menu/body'. (defalias 'v-hydra-menu/lambda-1-and-exit #[0 "\301\302!\210\303 \210\304 \210\305\306\307!\207" [hydra-curr-body-fn require hydra hydra-default-pre hydra-keyboard-quit v-hydra-menu/body hydra--call-interactively-remap-maybe #[0 "\300\301!\207" [v-run-command "xdg-open https://twitter.com/v_language"] 2 nil nil]] 2 (#$ . 17487) nil]) #@860 Call the head `(v-run-command "xdg-open https://discord.gg/vlang")' in the "v-hydra-menu" hydra. The heads for the associated hydra are: "b": `v-project-build', "r": `v-project-run', "o": `v-project-open', "i": `v-project-init', "u": `v-project-update', "1": `(v-run-command "xdg-open https://twitter.com/v_language")', "2": `(v-run-command "xdg-open https://discord.gg/vlang")', "3": `(v-run-command "xdg-open https://github.com/vlang/v/issues")', "4": `(v-run-command "xdg-open https://github.com/vlang/v/blob/master/doc/docs.md")', "5": `(v-run-command "xdg-open https://github.com/vlang/awesome-v")', "6": `(v-run-command "xdg-open https://patreon.com/vlang")', "0": `(v-run-command "xdg-open https://github.com/vlang/v/blob/master/CONTRIBUTING.md")', "q": `nil' The body can be accessed via `v-hydra-menu/body'. (defalias 'v-hydra-menu/lambda-2-and-exit #[0 "\301\302!\210\303 \210\304 \210\305\306\307!\207" [hydra-curr-body-fn require hydra hydra-default-pre hydra-keyboard-quit v-hydra-menu/body hydra--call-interactively-remap-maybe #[0 "\300\301!\207" [v-run-command "xdg-open https://discord.gg/vlang"] 2 nil nil]] 2 (#$ . 18696) nil]) #@869 Call the head `(v-run-command "xdg-open https://github.com/vlang/v/issues")' in the "v-hydra-menu" hydra. The heads for the associated hydra are: "b": `v-project-build', "r": `v-project-run', "o": `v-project-open', "i": `v-project-init', "u": `v-project-update', "1": `(v-run-command "xdg-open https://twitter.com/v_language")', "2": `(v-run-command "xdg-open https://discord.gg/vlang")', "3": `(v-run-command "xdg-open https://github.com/vlang/v/issues")', "4": `(v-run-command "xdg-open https://github.com/vlang/v/blob/master/doc/docs.md")', "5": `(v-run-command "xdg-open https://github.com/vlang/awesome-v")', "6": `(v-run-command "xdg-open https://patreon.com/vlang")', "0": `(v-run-command "xdg-open https://github.com/vlang/v/blob/master/CONTRIBUTING.md")', "q": `nil' The body can be accessed via `v-hydra-menu/body'. (defalias 'v-hydra-menu/lambda-3-and-exit #[0 "\301\302!\210\303 \210\304 \210\305\306\307!\207" [hydra-curr-body-fn require hydra hydra-default-pre hydra-keyboard-quit v-hydra-menu/body hydra--call-interactively-remap-maybe #[0 "\300\301!\207" [v-run-command "xdg-open https://github.com/vlang/v/issues"] 2 nil nil]] 2 (#$ . 19893) nil]) #@886 Call the head `(v-run-command "xdg-open https://github.com/vlang/v/blob/master/doc/docs.md")' in the "v-hydra-menu" hydra. The heads for the associated hydra are: "b": `v-project-build', "r": `v-project-run', "o": `v-project-open', "i": `v-project-init', "u": `v-project-update', "1": `(v-run-command "xdg-open https://twitter.com/v_language")', "2": `(v-run-command "xdg-open https://discord.gg/vlang")', "3": `(v-run-command "xdg-open https://github.com/vlang/v/issues")', "4": `(v-run-command "xdg-open https://github.com/vlang/v/blob/master/doc/docs.md")', "5": `(v-run-command "xdg-open https://github.com/vlang/awesome-v")', "6": `(v-run-command "xdg-open https://patreon.com/vlang")', "0": `(v-run-command "xdg-open https://github.com/vlang/v/blob/master/CONTRIBUTING.md")', "q": `nil' The body can be accessed via `v-hydra-menu/body'. (defalias 'v-hydra-menu/lambda-4-and-exit #[0 "\301\302!\210\303 \210\304 \210\305\306\307!\207" [hydra-curr-body-fn require hydra hydra-default-pre hydra-keyboard-quit v-hydra-menu/body hydra--call-interactively-remap-maybe #[0 "\300\301!\207" [v-run-command "xdg-open https://github.com/vlang/v/blob/master/doc/docs.md"] 2 nil nil]] 2 (#$ . 21108) nil]) #@870 Call the head `(v-run-command "xdg-open https://github.com/vlang/awesome-v")' in the "v-hydra-menu" hydra. The heads for the associated hydra are: "b": `v-project-build', "r": `v-project-run', "o": `v-project-open', "i": `v-project-init', "u": `v-project-update', "1": `(v-run-command "xdg-open https://twitter.com/v_language")', "2": `(v-run-command "xdg-open https://discord.gg/vlang")', "3": `(v-run-command "xdg-open https://github.com/vlang/v/issues")', "4": `(v-run-command "xdg-open https://github.com/vlang/v/blob/master/doc/docs.md")', "5": `(v-run-command "xdg-open https://github.com/vlang/awesome-v")', "6": `(v-run-command "xdg-open https://patreon.com/vlang")', "0": `(v-run-command "xdg-open https://github.com/vlang/v/blob/master/CONTRIBUTING.md")', "q": `nil' The body can be accessed via `v-hydra-menu/body'. (defalias 'v-hydra-menu/lambda-5-and-exit #[0 "\301\302!\210\303 \210\304 \210\305\306\307!\207" [hydra-curr-body-fn require hydra hydra-default-pre hydra-keyboard-quit v-hydra-menu/body hydra--call-interactively-remap-maybe #[0 "\300\301!\207" [v-run-command "xdg-open https://github.com/vlang/awesome-v"] 2 nil nil]] 2 (#$ . 22357) nil]) #@861 Call the head `(v-run-command "xdg-open https://patreon.com/vlang")' in the "v-hydra-menu" hydra. The heads for the associated hydra are: "b": `v-project-build', "r": `v-project-run', "o": `v-project-open', "i": `v-project-init', "u": `v-project-update', "1": `(v-run-command "xdg-open https://twitter.com/v_language")', "2": `(v-run-command "xdg-open https://discord.gg/vlang")', "3": `(v-run-command "xdg-open https://github.com/vlang/v/issues")', "4": `(v-run-command "xdg-open https://github.com/vlang/v/blob/master/doc/docs.md")', "5": `(v-run-command "xdg-open https://github.com/vlang/awesome-v")', "6": `(v-run-command "xdg-open https://patreon.com/vlang")', "0": `(v-run-command "xdg-open https://github.com/vlang/v/blob/master/CONTRIBUTING.md")', "q": `nil' The body can be accessed via `v-hydra-menu/body'. (defalias 'v-hydra-menu/lambda-6-and-exit #[0 "\301\302!\210\303 \210\304 \210\305\306\307!\207" [hydra-curr-body-fn require hydra hydra-default-pre hydra-keyboard-quit v-hydra-menu/body hydra--call-interactively-remap-maybe #[0 "\300\301!\207" [v-run-command "xdg-open https://patreon.com/vlang"] 2 nil nil]] 2 (#$ . 23574) nil]) #@890 Call the head `(v-run-command "xdg-open https://github.com/vlang/v/blob/master/CONTRIBUTING.md")' in the "v-hydra-menu" hydra. The heads for the associated hydra are: "b": `v-project-build', "r": `v-project-run', "o": `v-project-open', "i": `v-project-init', "u": `v-project-update', "1": `(v-run-command "xdg-open https://twitter.com/v_language")', "2": `(v-run-command "xdg-open https://discord.gg/vlang")', "3": `(v-run-command "xdg-open https://github.com/vlang/v/issues")', "4": `(v-run-command "xdg-open https://github.com/vlang/v/blob/master/doc/docs.md")', "5": `(v-run-command "xdg-open https://github.com/vlang/awesome-v")', "6": `(v-run-command "xdg-open https://patreon.com/vlang")', "0": `(v-run-command "xdg-open https://github.com/vlang/v/blob/master/CONTRIBUTING.md")', "q": `nil' The body can be accessed via `v-hydra-menu/body'. (defalias 'v-hydra-menu/lambda-0-and-exit #[0 "\301\302!\210\303 \210\304 \210\305\306\307!\207" [hydra-curr-body-fn require hydra hydra-default-pre hydra-keyboard-quit v-hydra-menu/body hydra--call-interactively-remap-maybe #[0 "\300\301!\207" [v-run-command "xdg-open https://github.com/vlang/v/blob/master/CONTRIBUTING.md"] 2 nil nil]] 2 (#$ . 24773) nil]) #@812 Call the head `nil' in the "v-hydra-menu" hydra. The heads for the associated hydra are: "b": `v-project-build', "r": `v-project-run', "o": `v-project-open', "i": `v-project-init', "u": `v-project-update', "1": `(v-run-command "xdg-open https://twitter.com/v_language")', "2": `(v-run-command "xdg-open https://discord.gg/vlang")', "3": `(v-run-command "xdg-open https://github.com/vlang/v/issues")', "4": `(v-run-command "xdg-open https://github.com/vlang/v/blob/master/doc/docs.md")', "5": `(v-run-command "xdg-open https://github.com/vlang/awesome-v")', "6": `(v-run-command "xdg-open https://patreon.com/vlang")', "0": `(v-run-command "xdg-open https://github.com/vlang/v/blob/master/CONTRIBUTING.md")', "q": `nil' The body can be accessed via `v-hydra-menu/body'. (defalias 'v-hydra-menu/nil #[0 "\301\302!\210\303 \210\304 \210\305\211\207" [hydra-curr-body-fn require hydra hydra-default-pre hydra-keyboard-quit v-hydra-menu/body] 2 (#$ . 26030) nil]) #@806 Call the body in the "v-hydra-menu" hydra. The heads for the associated hydra are: "b": `v-project-build', "r": `v-project-run', "o": `v-project-open', "i": `v-project-init', "u": `v-project-update', "1": `(v-run-command "xdg-open https://twitter.com/v_language")', "2": `(v-run-command "xdg-open https://discord.gg/vlang")', "3": `(v-run-command "xdg-open https://github.com/vlang/v/issues")', "4": `(v-run-command "xdg-open https://github.com/vlang/v/blob/master/doc/docs.md")', "5": `(v-run-command "xdg-open https://github.com/vlang/awesome-v")', "6": `(v-run-command "xdg-open https://patreon.com/vlang")', "0": `(v-run-command "xdg-open https://github.com/vlang/v/blob/master/CONTRIBUTING.md")', "q": `nil' The body can be accessed via `v-hydra-menu/body'. (defalias 'v-hydra-menu/body #[0 "\306\307!\210\310 \210\311\312 \210\313)\314\n\315\"\210\316 \317\311#\210\f\211\207" [hydra--ignore hydra-curr-body-fn v-hydra-menu/hint v-hydra-menu/keymap current-prefix-arg prefix-arg require hydra hydra-default-pre nil hydra-keyboard-quit v-hydra-menu/body hydra-show-hint v-hydra-menu hydra-set-transient-map #[0 "\300 \210\301\207" [hydra-keyboard-quit nil] 1]] 4 (#$ . 27039) nil]) #@20 Open v hydra menu. (defalias 'v-menu #[0 "\300 \207" [v-hydra-menu/body] 1 (#$ . 28277) nil]) #@33 Build tags for current project. (defalias 'v-build-tags #[0 "\301\302!\301\303\304\305 \"!\203\306!\210\211\203\306!\210\266\307\310\311!!\307\310\312P!!\313!\314P\315P\316!\205I\317 \320\321\310!\"\210\322 \210\211\211\262\207" [default-directory get-buffer "TAGS" format "TAGS<%s>" v-project-name kill-buffer string-trim shell-command-to-string "which v" "readlink -f " file-name-directory "vlib" "ctags --languages=-v --langdef=v --langmap=v:.v --regex-v='/[ \\t]*fn[ \\t]+(.*)[ \\t]+(.*)/\\2/f,function/' --regex-v='/[ \\t]*struct[ \\t]+([a-zA-Z0-9_]+)/\\1/s,struct/' --regex-v='/[ \\t]*interface[ \\t]+([a-zA-Z0-9_]+)/\\1/i,interface/' --regex-v='/[ \\t]*type[ \\t]+([a-zA-Z0-9_]+)/\\1/t,type/' --regex-v='/[ \\t]*enum[ \\t]+([a-zA-Z0-9_]+)/\\1/e,enum/' --regex-v='/[ \\t]*module[ \\t]+([a-zA-Z0-9_]+)/\\1/m,module/' -e -R . " file-exists-p v-project-root message "ctags:%s" v-load-tags] 9 (#$ . 28377) nil]) #@67 Visit tags table. Optional argument BUILD . (fn &optional BUILD) (defalias 'v-load-tags #[256 "\300 \301P\302!\203\303\300 \301P!\207\205\304 \207" [v-project-root "TAGS" file-exists-p visit-tags-table v-build-tags] 5 (#$ . 29315) nil]) #@49 Format the current buffer using the 'v fmt -w'. (defalias 'v-format-buffer #[0 "\301=\205\302\303\304 P!\210\305\306\307\"\207" [major-mode v-mode shell-command "v fmt -w " buffer-file-name revert-buffer :ignore-auto :noconfirm] 3 (#$ . 29565) nil]) #@18 After save hook. (defalias 'v-after-save-hook #[0 "\301=\205\302 \210\303\304!\204\305\306\304\"\207\307 \207" [major-mode v-mode v-format-buffer executable-find "ctags" message "Could not locate executable '%s'" v-build-tags] 3 (#$ . 29824)]) (defvar v-mode-hook nil) (byte-code "\300\301N\204\f\302\300\301\303#\210\304\305!\204\302\305\306\307#\210\300\207" [v-mode-hook variable-documentation put "Hook run after entering V mode.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it. (This is true for all hook variables.)" boundp v-mode-map definition-name v-mode] 4) (defvar v-mode-map (make-sparse-keymap)) (byte-code "\301\302N\204\303\301\302\304\305!#\210\306\300!\204#\303\300\307\310#\210\311\312\300\313\"\210!\210\300\302N\2041\303\300\302\304\314!#\210\303\310\315\316#\207" [v-mode-abbrev-table v-mode-map variable-documentation put purecopy "Keymap for `v-mode'." boundp definition-name v-mode (lambda (def-tmp-var) (defvar v-mode-abbrev-table def-tmp-var)) define-abbrev-table nil "Abbrev table for `v-mode'." derived-mode-parent prog-mode] 5) #@213 Major mode for editing V files. In addition to any hooks its parent mode `prog-mode' might have run, this mode runs the hook `v-mode-hook', as the final or penultimate step during initialization. \{v-mode-map} (defalias 'v-mode #[0 "\306\300!\210\307\310 \210\311\312\310\313N\203\314\311\313\310\313N#\210\315 !\204'\316 \317 \"\210\320\f\321\"\204;\f =\204;\322\f\321 C#\210\323 !\210\3246!\210\f\306\325!\2107\306\326!\210\307\306\327!\210\330\306\331!\210\332\306\333!\210\334\306\335!\210\336\306\337!\210\340\306\341!\210\342!\306\343!\210\344\345#\"#\306\346!\210\347&\306\350!\210(\306\351!\210\352)\353 \210\306\354!\210\355,\356\357!\210\360\361\362\336\307$\210\363 \210)\364\365!\207" [delay-mode-hooks major-mode mode-name v-mode-map v-mode-abbrev-table local-abbrev-table make-local-variable t prog-mode v-mode "V" mode-class put keymap-parent set-keymap-parent current-local-map abbrev-table-get :parents abbrev-table-put use-local-map set-syntax-table require-final-newline parse-sexp-ignore-comments comment-start "/*" comment-end "*/" comment-start-skip "\\(//+\\|/\\*+\\)\\s *" indent-tabs-mode nil tab-width 4 buffer-file-coding-system utf-8-unix electric-indent-chars append "{}():;," indent-line-function js-indent-line js-indent-level font-lock-defaults (v-font-lock-keywords) font-lock-flush imenu-generic-expression (("TODO" ".*TODO:[ ]*\\(.*\\)$" 1) ("fn" "[ ]*fn[ ]+(.*)[ ]+\\(.*\\)[ ]*(.*)" 1) ("struct" "[ ]*struct[ ]+\\([a-zA-Z0-9_]+\\)" 1) ("interface" "[ ]*interface[ ]+\\([a-zA-Z0-9_]+\\)" 1) ("type" "[ ]*type[ ]+\\([a-zA-Z0-9_]+\\)" 1) ("enum" "[ ]*enum[ ]+\\([a-zA-Z0-9_]+\\)" 1) ("import" "[ ]*import[ ]+\\([a-zA-Z0-9_]+\\)" 1)) imenu-add-to-menubar "Index" add-hook after-save-hook v-after-save-hook v-load-tags run-mode-hooks v-mode-hook v-mode-syntax-table mode-require-final-newline] 5 (#$ . 30940) nil]) (byte-code "\300\301\302\"\210\303\304!\207" [add-to-list auto-mode-alist ("\\.v?v\\.vsh\\'" . v-mode) provide v-mode] 3)