Skip to content

Commit

Permalink
Merge pull request #2399 from b4n/smalltalk
Browse files Browse the repository at this point in the history
Add Smalltalk filetype
  • Loading branch information
b4n committed Oct 9, 2020
2 parents d369123 + d7d1810 commit fb28720
Show file tree
Hide file tree
Showing 11 changed files with 418 additions and 1 deletion.
1 change: 1 addition & 0 deletions data/Makefile.am
Expand Up @@ -67,6 +67,7 @@ filetypes = \
filedefs/filetypes.rust \
filedefs/filetypes.Scala.conf \
filedefs/filetypes.sh \
filedefs/filetypes.smalltalk \
filedefs/filetypes.sql \
filedefs/filetypes.Swift.conf \
filedefs/filetypes.TypeScript.conf \
Expand Down
56 changes: 56 additions & 0 deletions data/filedefs/filetypes.smalltalk
@@ -0,0 +1,56 @@
# For complete documentation of this file, please see Geany's main documentation
[styling]
# Edit these in the colorscheme .conf file instead
default=default
special=operator
symbol=identifier_1
assignment=operator
return=operator
number=number_1
binary=operator
special_selector=keyword_3
keyword_send=keyword_2
global=class
self=keyword_1
super=keyword_1
nil=keyword_1
bool=keyword_1
comment=comment
string=string_1
character=character

[keywords]
# all items must be in one line
special_selector=ifTrue: ifFalse: whileTrue: whileFalse: ifNil: ifNotNil: whileTrue whileFalse repeat isNil notNil

[settings]
# default extension used when saving files
extension=st

# MIME type
mime_type=text/x-smalltalk

# the following characters are these which a "word" can contains, see documentation
#wordchars=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789

# single comments, like # in this file
#comment_single=
# multiline comments
comment_open="
comment_close="

# set to false if a comment character/string should start at column 0 of a line, true uses any
# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
#command_example();
# setting to false would generate this
# command_example();
# This setting works only for single line comments
comment_use_indent=true

# context action command (please see Geany's main documentation for details)
context_action_cmd=

[indentation]
#width=4
# 0 is spaces, 1 is tabs, 2 is tab & spaces
#type=1
1 change: 1 addition & 0 deletions data/filetype_extensions.conf
Expand Up @@ -65,6 +65,7 @@ Rust=*.rs;
Ruby=*.rb;*.rhtml;*.ruby;*.gemspec;Gemfile;rakefile;Rakefile;
Scala=*.scala;*.scl;
Sh=*.sh;configure;configure.in;configure.in.in;configure.ac;*.ksh;*.mksh;*.zsh;*.ash;*.bash;.bashrc;bash.bashrc;.bash_*;bash_*;*.m4;PKGBUILD;*profile;
Smalltalk=*.st;
SQL=*.sql;
Swift=*.swift;
Tcl=*.tcl;*.tk;*.wish;*.exp;
Expand Down
1 change: 1 addition & 0 deletions scintilla/Makefile.am
Expand Up @@ -42,6 +42,7 @@ lexers/LexPO.cxx \
lexers/LexR.cxx \
lexers/LexRuby.cxx \
lexers/LexRust.cxx \
lexers/LexSmalltalk.cxx \
lexers/LexSQL.cxx \
lexers/LexTCL.cxx \
lexers/LexTxt2tags.cxx \
Expand Down

0 comments on commit fb28720

Please sign in to comment.