;ELC ;;; Compiled ;;; in Emacs version 28.0.50 ;;; with all optimizations. (byte-code "\302\303!\210\302\304!\210\302\305!\210\302\306!\210\302\307!\210\302\310!\210\302\311!\210\302\312!\210\313X\204.\314\315\316 #!\210\317\320\321\322\323\324%\207" [emacs-major-version emacs-minor-version require scala-mode-lib scala-mode-syntax scala-mode-paragraph scala-mode-indent scala-mode-fontlock scala-mode-map scala-mode-imenu scala-mode-prettify-symbols 24 error format "The Scala mode has been tested only on Emacs version 24.2 (and not your Emacs version %s.%s)" custom-declare-group scala nil "A programming mode for the Scala language 2 and 3" :group languages] 6) (defalias 'scala-mode:make-local-variables '(macro . #[(&rest quoted-names) "\301\302\303\"B\207" [quoted-names progn mapcar #[(quoted-name) "\301D\207" [quoted-name make-local-variable] 2]] 4])) #@108 Determine default tag to search for, based on text at point. If there is no plausible default, return nil. (defalias 'scala-mode:find-tag #[nil "\305\211\212\306\n\305xW\203`Sf\307U\203 \310\311!\210\202 \310\311!\210`)\212\312\313!\210`)\212\31417\315 0\210\2028\210 `])\212 b\210\3161L\317 0\210\202M\210`^) V\205n\212 b\210\320 !\205f\320\f!?)\205n\321 \"*\207" [to from scala-syntax:opchar-group scala-syntax:id-re scala-syntax:keywords-unsafe-re nil 0 95 skip-syntax-backward "w_" skip-syntax-forward "w_." (error) scala-syntax:backward-sexp (error) scala-syntax:forward-sexp looking-at buffer-substring-no-properties] 3 (#$ . 881)]) (defalias 'scala-mode:forward-sexp-function #[(&optional count) "\204\303\304W\203$\305!\304 \nW\205\"\306 \210 T\211\202*\207\304 \nW\2058\307 \210 T\211\202)*\207" [count n --dotimes-limit-- 1 0 abs scala-syntax:backward-sexp scala-syntax:forward-sexp] 3]) #@183 Sets the syntax-table and other related variables for the current buffer to those of scala-mode. Can be used to make some other major mode (such as sbt-mode) use scala syntax-table. (defalias 'scala-mode:set-scala-syntax-mode #[nil "\304!\210\305\301!\210\305\302!\210\305\303!\210\306\307\310\"\210\311\312\313\211\207" [scala-syntax:syntax-table syntax-propertize-function parse-sexp-lookup-properties forward-sexp-function set-syntax-table make-local-variable add-hook syntax-propertize-extend-region-functions scala-syntax:propertize-extend-region scala-syntax:propertize t scala-mode:forward-sexp-function] 3 (#$ . 1825)]) #@71 Go to the start of the real code in the file: object, class or trait. (defalias 'scala-mode:goto-start-of-code #[nil "\301\302\303\301\304#\210\305\301!)\207" [case-fold-search nil search-forward-regexp "\\([[:space:]]+\\|^\\)\\(class\\|object\\|trait\\)" t move-beginning-of-line] 4 (#$ . 2463) nil]) (defvar scala-mode-hook nil) (byte-code "\300\301N\204\f\302\300\301\303#\210\304\305!\204\302\305\306\307#\210\300\207" [scala-mode-hook variable-documentation put "Hook run after entering Scala mode.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it. (This is true for all hook variables.)" boundp scala-mode-map definition-name scala-mode] 4) (defvar scala-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" [scala-mode-abbrev-table scala-mode-map variable-documentation put purecopy "Keymap for `scala-mode'." boundp definition-name scala-mode (lambda (#1=#:def-tmp-var) (defvar scala-mode-abbrev-table #1#)) define-abbrev-table nil "Abbrev table for `scala-mode'." derived-mode-parent prog-mode] 5) #@94 Major mode for editing scala code. When started, runs `scala-mode-hook'. \{scala-mode-map} (defalias 'scala-mode #[nil "\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\324@!\210\f\306\325!\210\306\326!\210\306\327!\210\306\330!\210\306\331!\210\306\332!\210\306\333!\210\306\334!\210\306\335!\210\306\336!\210\306\337!\210\306\340!\210\306\341!\210\306\342!\210\306\343!\210\306\344!\210\306\345!\210\306\346!\210\306\347!\210\306\350!\210\306\351!\210\306\352!\210\306\353!\210\306\354!\210\355\356\357\"\210\360A\361\307\362\363BC\364\365\366D\367\370 \371!\372\"\307#\373$\374%\375&\376'\377(\360)\201E+\201F,\201G*\323 !\210\201H \210\201I \210)\201J\201K!\207" [delay-mode-hooks major-mode mode-name scala-mode-map scala-mode-abbrev-table local-abbrev-table make-local-variable t prog-mode scala-mode "Scala" mode-class put keymap-parent set-keymap-parent current-local-map abbrev-table-get :parents abbrev-table-put use-local-map set-syntax-table syntax-propertize-function font-lock-syntactic-face-function font-lock-defaults paragraph-start paragraph-separate parse-sexp-lookup-properties fill-paragraph-function adaptive-fill-function adaptive-fill-regexp adaptive-fill-first-line-regexp comment-start comment-end comment-start-skip comment-column comment-multi-line forward-sexp-function find-tag-default-function indent-line-function fixup-whitespace delete-indentation indent-tabs-mode imenu-create-index-function beginning-of-defun-function end-of-defun-function add-hook syntax-propertize-extend-region-functions scala-syntax:propertize-extend-region nil scala-syntax:propertize (scala-font-lock:keywords nil) scala-font-lock:syntactic-face-function scala-paragraph:fill-paragraph scala-paragraph:fill-function "[ ]*\\(//+[ ]*\\)*" "// " "" "\\(//+\\|/\\*+\\)[ ]*" 0 scala-mode:forward-sexp-function scala-mode:find-tag scala-indent:indent-line scala-indent:fixup-whitespace scala-indent:join-line scala-syntax:syntax-table scala-mode:debug-messages scala-paragraph:paragraph-start-re scala-paragraph:paragraph-separate-re scala-paragraph:fill-first-line-re scala-syntax:beginning-of-definition scala-syntax:end-of-definition scala-imenu:create-imenu-index scala-mode-map:add-remove-indent-hook scala-mode-map:add-self-insert-hooks run-mode-hooks scala-mode-hook] 5 (#$ . 3677) nil]) (byte-code "\300\301\302\"\210\303\304\305\306#\210\307\310!\207" [add-to-list auto-mode-alist ("\\.\\(scala\\|sbt\\|worksheet\\.sc\\)\\'" . scala-mode) modify-coding-system-alist file "\\.\\(scala\\|sbt\\|worksheet\\.sc\\)\\'" utf-8 provide scala-mode] 4)