mirror of
https://github.com/felixangell/phi.git
synced 2024-10-26 17:18:31 +03:00
8687f612d4
this means that we can 'type check' command palette arguments, e.g. if something should be a string or not, etc. it uses the same lexer which is used for the syntax highlighting ... let's see how long that lasts.
23 lines
431 B
Go
23 lines
431 B
Go
package buff
|
|
|
|
import (
|
|
"log"
|
|
"os"
|
|
|
|
"github.com/felixangell/phi/lex"
|
|
)
|
|
|
|
func ExitPhi(v *BufferView, commands []*lex.Token) bool {
|
|
// todo this probably wont work...
|
|
// would also be nice to have a thing
|
|
// that asks if we want to save all buffers
|
|
// rather than going thru each one specifically?
|
|
for i := range v.buffers {
|
|
CloseBuffer(v, []*lex.Token{})
|
|
log.Println("Closing buffer ", i)
|
|
}
|
|
|
|
os.Exit(0)
|
|
return false
|
|
}
|