js uses softtabstop now, java sample added
This commit is contained in:
parent
84772dfde5
commit
c73d350fbb
@ -1,4 +1,4 @@
|
||||
if !exists("g:formatprg_cs") | let g:formatprg_cs = "zastyle" | endif
|
||||
if !exists("g:formatprg_cs") | let g:formatprg_cs = "astyle" | endif
|
||||
if !exists("g:formatprg_args_cs") | let g:formatprg_args_expr_cs = '"--mode=cs --style=ansi -pcHs".&softtabstop' | endif
|
||||
|
||||
if !exists("g:formatprg_c") | let g:formatprg_c = "astyle" | endif
|
||||
@ -32,5 +32,5 @@ if !exists("g:formatprg_javascript")
|
||||
endif
|
||||
endif
|
||||
if !exists("g:formatprg_args_javascript")
|
||||
let g:formatprg_args_javascript = "-i"
|
||||
let g:formatprg_args_expr_javascript = '"-i -s".&softtabstop'
|
||||
endif
|
||||
|
1
samples/java.java
Normal file
1
samples/java.java
Normal file
@ -0,0 +1 @@
|
||||
public class Blastoff{ public static void main(String[] args) { public static void countdown(int n, int m) { if (n == 0) { System.out.println("Blastoff!"); } else { System.out.println(n); countdown(n - 1); } } }}
|
Loading…
Reference in New Issue
Block a user