Added lexars
This commit is contained in:
parent
382b2ce94b
commit
f9f64b0558
820 changed files with 149371 additions and 0 deletions
lexers/testdata
24
lexers/testdata/vshell.actual
vendored
Normal file
24
lexers/testdata/vshell.actual
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
#!/usr/bin/env -S v run
|
||||
// The shebang above associates the file to V on Unix-like systems,
|
||||
// so it can be run just by specifying the path to the file
|
||||
// once it's made executable using `chmod +x`.
|
||||
|
||||
// print command then execute it
|
||||
fn sh(cmd string){
|
||||
println("❯ $cmd")
|
||||
print(execute_or_exit(cmd).output)
|
||||
}
|
||||
|
||||
// Remove if build/ exits, ignore any errors if it doesn't
|
||||
rmdir_all('build') or { }
|
||||
|
||||
// Create build/, never fails as build/ does not exist
|
||||
mkdir('build')?
|
||||
|
||||
// Move *.v files to build/
|
||||
result := execute('mv *.v build/')
|
||||
if result.exit_code != 0 {
|
||||
println(result.output)
|
||||
}
|
||||
|
||||
sh('ls')
|
Loading…
Add table
Add a link
Reference in a new issue