mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-04-13 13:10:39 +08:00
Update language list (#4203)
This commit is contained in:
parent
ce1055af4d
commit
5585f0faad
@ -14,6 +14,7 @@ let s:self.__aliases = {
|
||||
\ 'typescriptreact' : 'TypeScript React',
|
||||
\ 'python' : 'Python',
|
||||
\ 'java' : 'Java',
|
||||
\ 'smalltalk' : 'SmallTalk',
|
||||
\ 'objc' : 'Objective-C',
|
||||
\ }
|
||||
|
||||
|
20
autoload/SpaceVim/layers/lang/s.vim
Normal file
20
autoload/SpaceVim/layers/lang/s.vim
Normal file
@ -0,0 +1,20 @@
|
||||
"=============================================================================
|
||||
" splus.vim --- S language layer
|
||||
" Copyright (c) 2016-2019 Wang Shidong & Contributors
|
||||
" Author: Wang Shidong < wsdjeg@outlook.com >
|
||||
" URL: https://spacevim.org
|
||||
" License: GPLv3
|
||||
"=============================================================================
|
||||
|
||||
|
||||
function! SpaceVim#layers#lang#s#plugins() abort
|
||||
let plugins = []
|
||||
|
||||
return plugins
|
||||
endfunction
|
||||
|
||||
|
||||
function! SpaceVim#layers#lang#s#config() abort
|
||||
|
||||
endfunction
|
||||
|
19
autoload/SpaceVim/layers/lang/smalltalk.vim
Normal file
19
autoload/SpaceVim/layers/lang/smalltalk.vim
Normal file
@ -0,0 +1,19 @@
|
||||
"=============================================================================
|
||||
" smalltalk.vim --- SmallTalk language layer
|
||||
" Copyright (c) 2016-2019 Wang Shidong & Contributors
|
||||
" Author: Wang Shidong < wsdjeg@outlook.com >
|
||||
" URL: https://spacevim.org
|
||||
" License: GPLv3
|
||||
"=============================================================================
|
||||
|
||||
|
||||
function! SpaceVim#layers#lang#smalltalk#plugins() abort
|
||||
let plugins = []
|
||||
call add(plugins, [g:_spacevim_root_dir . 'bundle/smalltalk', {'merged' : 0}])
|
||||
return plugins
|
||||
endfunction
|
||||
|
||||
|
||||
function! SpaceVim#layers#lang#smalltalk#config() abort
|
||||
|
||||
endfunction
|
19
autoload/SpaceVim/layers/lang/splus.vim
Normal file
19
autoload/SpaceVim/layers/lang/splus.vim
Normal file
@ -0,0 +1,19 @@
|
||||
"=============================================================================
|
||||
" splus.vim --- S-Plus language layer
|
||||
" Copyright (c) 2016-2019 Wang Shidong & Contributors
|
||||
" Author: Wang Shidong < wsdjeg@outlook.com >
|
||||
" URL: https://spacevim.org
|
||||
" License: GPLv3
|
||||
"=============================================================================
|
||||
|
||||
|
||||
function! SpaceVim#layers#lang#splus#plugins() abort
|
||||
let plugins = []
|
||||
|
||||
return plugins
|
||||
endfunction
|
||||
|
||||
|
||||
function! SpaceVim#layers#lang#splus#config() abort
|
||||
|
||||
endfunction
|
2
bundle/smalltalk/ftdetect/smalltalk.vim
Normal file
2
bundle/smalltalk/ftdetect/smalltalk.vim
Normal file
@ -0,0 +1,2 @@
|
||||
au BufRead,BufNewFile *.st set filetype=smalltalk
|
||||
|
0
bundle/smalltalk/indent/smalltalk.vim
Normal file
0
bundle/smalltalk/indent/smalltalk.vim
Normal file
96
bundle/smalltalk/syntax/smalltalk.vim
Normal file
96
bundle/smalltalk/syntax/smalltalk.vim
Normal file
@ -0,0 +1,96 @@
|
||||
" Vim syntax file
|
||||
" Language: Smalltalk
|
||||
" Maintainer: Arndt Hesse <hesse@self.de>
|
||||
" Last Change: 2012 Feb 12 by Thilo Six
|
||||
|
||||
" quit when a syntax file was already loaded
|
||||
if exists('b:current_syntax')
|
||||
finish
|
||||
endif
|
||||
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
|
||||
" some Smalltalk keywords and standard methods
|
||||
syn keyword stKeyword super self class true false new not
|
||||
syn keyword stKeyword notNil isNil inspect out nil
|
||||
syn match stMethod "\<do\>:"
|
||||
syn match stMethod "\<whileTrue\>:"
|
||||
syn match stMethod "\<whileFalse\>:"
|
||||
syn match stMethod "\<ifTrue\>:"
|
||||
syn match stMethod "\<ifFalse\>:"
|
||||
syn match stMethod "\<put\>:"
|
||||
syn match stMethod "\<to\>:"
|
||||
syn match stMethod "\<at\>:"
|
||||
syn match stMethod "\<add\>:"
|
||||
syn match stMethod "\<new\>:"
|
||||
syn match stMethod "\<for\>:"
|
||||
syn match stMethod "\<methods\>:"
|
||||
syn match stMethod "\<methodsFor\>:"
|
||||
syn match stMethod "\<instanceVariableNames\>:"
|
||||
syn match stMethod "\<classVariableNames\>:"
|
||||
syn match stMethod "\<poolDictionaries\>:"
|
||||
syn match stMethod "\<subclass\>:"
|
||||
|
||||
" the block of local variables of a method
|
||||
syn region stLocalVariables start="^[ \t]*|" end="|"
|
||||
|
||||
" the Smalltalk comment
|
||||
syn region stComment start="\"" end="\""
|
||||
|
||||
" the Smalltalk strings and single characters
|
||||
syn region stString start='\'' skip="''" end='\''
|
||||
syn match stCharacter "$."
|
||||
|
||||
syn case ignore
|
||||
|
||||
" the symols prefixed by a '#'
|
||||
syn match stSymbol "\(#\<[a-z_][a-z0-9_]*\>\)"
|
||||
syn match stSymbol "\(#'[^']*'\)"
|
||||
|
||||
" the variables in a statement block for loops
|
||||
syn match stBlockVariable "\(:[ \t]*\<[a-z_][a-z0-9_]*\>[ \t]*\)\+|" contained
|
||||
|
||||
" some representations of numbers
|
||||
syn match stNumber "\<\d\+\(u\=l\=\|lu\|f\)\>"
|
||||
syn match stFloat "\<\d\+\.\d*\(e[-+]\=\d\+\)\=[fl]\=\>"
|
||||
syn match stFloat "\<\d\+e[-+]\=\d\+[fl]\=\>"
|
||||
|
||||
syn case match
|
||||
|
||||
" a try to higlight paren mismatches
|
||||
syn region stParen transparent start='(' end=')' contains=ALLBUT,stParenError
|
||||
syn match stParenError ")"
|
||||
syn region stBlock transparent start='\[' end='\]' contains=ALLBUT,stBlockError
|
||||
syn match stBlockError "\]"
|
||||
syn region stSet transparent start='{' end='}' contains=ALLBUT,stSetError
|
||||
syn match stSetError "}"
|
||||
|
||||
hi link stParenError stError
|
||||
hi link stSetError stError
|
||||
hi link stBlockError stError
|
||||
|
||||
" synchronization for syntax analysis
|
||||
syn sync minlines=50
|
||||
|
||||
" Define the default highlighting.
|
||||
" Only when an item doesn't have highlighting yet
|
||||
|
||||
hi def link stKeyword Statement
|
||||
hi def link stMethod Statement
|
||||
hi def link stComment Comment
|
||||
hi def link stCharacter Constant
|
||||
hi def link stString Constant
|
||||
hi def link stSymbol Special
|
||||
hi def link stNumber Type
|
||||
hi def link stFloat Type
|
||||
hi def link stError Error
|
||||
hi def link stLocalVariables Identifier
|
||||
hi def link stBlockVariable Identifier
|
||||
|
||||
|
||||
let b:current_syntax = 'st'
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
39
docs/layers/lang/factor.md
Normal file
39
docs/layers/lang/factor.md
Normal file
@ -0,0 +1,39 @@
|
||||
---
|
||||
title: "SpaceVim lang#factor layer"
|
||||
description: "This layer is for factor development, provide syntax checking, code runner and repl support for factor file."
|
||||
---
|
||||
|
||||
# [Available Layers](../../) >> lang#factor
|
||||
|
||||
<!-- vim-markdown-toc GFM -->
|
||||
|
||||
- [Description](#description)
|
||||
- [Install](#install)
|
||||
- [Features](#features)
|
||||
- [Key bindings](#key-bindings)
|
||||
- [Running current script](#running-current-script)
|
||||
|
||||
<!-- vim-markdown-toc -->
|
||||
|
||||
## Description
|
||||
|
||||
This layer is for factor development.
|
||||
|
||||
## Install
|
||||
|
||||
To use this configuration layer, update custom configuration file with:
|
||||
|
||||
```toml
|
||||
[[layers]]
|
||||
name = "lang#factor"
|
||||
```
|
||||
## Features
|
||||
|
||||
- code runner
|
||||
|
||||
## Key bindings
|
||||
|
||||
### Running current script
|
||||
|
||||
To running a factor file, you can press `SPC l r` to run current file without loss focus,
|
||||
and the result will be shown in a runner buffer.
|
32
docs/layers/lang/smalltalk.md
Normal file
32
docs/layers/lang/smalltalk.md
Normal file
@ -0,0 +1,32 @@
|
||||
---
|
||||
title: "SpaceVim lang#smalltalk layer"
|
||||
description: "This layer is for smalltalk development, includes syntax highlighting for smalltalk file."
|
||||
---
|
||||
|
||||
# [Available Layers](../../) >> lang#smalltalk
|
||||
|
||||
<!-- vim-markdown-toc GFM -->
|
||||
|
||||
- [Description](#description)
|
||||
- [Install](#install)
|
||||
- [Features](#features)
|
||||
|
||||
<!-- vim-markdown-toc -->
|
||||
|
||||
## Description
|
||||
|
||||
This layer provides syntax highlighting for SmallTalk Programming language.
|
||||
|
||||
## Install
|
||||
|
||||
To use this configuration layer, update custom configuration file with:
|
||||
|
||||
```toml
|
||||
[[layers]]
|
||||
name = "lang#smalltalk"
|
||||
```
|
||||
|
||||
## Features
|
||||
|
||||
- syntax highlighting for `.st` file
|
||||
|
@ -29,9 +29,11 @@ This is a list of programming languages supported in SpaceVim:
|
||||
| Dart | [lang#dart](https://spacevim.org/layers/lang/dart/) | |
|
||||
| DOS batch | [lang#batch](https://spacevim.org/layers/lang/batch/) | |
|
||||
| Elixir | [lang#elixir](https://spacevim.org/layers/lang/elixir/) | |
|
||||
| Eiffel | [lang#eiffel](https://spacevim.org/layers/lang/eiffel/) |
|
||||
| Elm | [lang#elm](https://spacevim.org/layers/lang/elm/) | |
|
||||
| erlang | [lang#erlang](https://spacevim.org/layers/lang/erlang/) | |
|
||||
| F# | [lang#fsharp](https://spacevim.org/layers/lang/fsharp/) | |
|
||||
| Factor | [lang#factor](https://spacevim.org/layers/lang/factor/) | |
|
||||
| FoxPro | [lang#foxpro](https://spacevim.org/layers/lang/foxpro/) | |
|
||||
| Fortran | [lang#fortran](https://spacevim.org/layers/lang/fortran/) | |
|
||||
| Go | [lang#go](https://spacevim.org/layers/lang/go/) | |
|
||||
@ -54,6 +56,7 @@ This is a list of programming languages supported in SpaceVim:
|
||||
| Kotlin | [lang#kotlin](https://spacevim.org/layers/lang/kotlin/) | |
|
||||
| lasso | [lang#lasso](https://spacevim.org/layers/lang/lasso/) | |
|
||||
| latex | [lang#latex](https://spacevim.org/layers/lang/latex/) | |
|
||||
| Lisp | [lang#lisp](https://spacevim.org/layers/lang/lisp/) | |
|
||||
| LiveScript | [lang#livescript](https://spacevim.org/layers/lang/livescript/) | |
|
||||
| Lua | [lang#lua](https://spacevim.org/layers/lang/lua/) | |
|
||||
| MoonScript | [lang#moonscript](https://spacevim.org/layers/lang/moonscript/) | |
|
||||
@ -153,12 +156,10 @@ Before adding these languages, we need to know:
|
||||
| E | | |
|
||||
| ECMAScript | | |
|
||||
| EGL | | |
|
||||
| Eiffel | | |
|
||||
| Emacs Lisp | | |
|
||||
| Etoys | | |
|
||||
| Euphoria | | |
|
||||
| EXEC | | |
|
||||
| Factor | | |
|
||||
| Falcon | | |
|
||||
| Fantom | | |
|
||||
| Felix | | |
|
||||
@ -189,7 +190,6 @@ Before adding these languages, we need to know:
|
||||
| Lasso | | |
|
||||
| Limbo | | |
|
||||
| Lingo | | |
|
||||
| Lisp | | |
|
||||
| LiveCode | | |
|
||||
| Logo | | |
|
||||
| LotusScript | | |
|
||||
|
Loading…
x
Reference in New Issue
Block a user