"Fossies" - the Fresh Open Source Software Archive

Member "wscite/nim.properties" (11 Sep 2020, 2756 Bytes) of package /windows/misc/wscite445.zip:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # Define SciTE settings for Nim files.
    2 
    3 # File filters, patterns, language, lexer and source
    4 file.patterns.nim=*.nim
    5 filter.nim=Nim (nim)|$(file.patterns.nim)|
    6 lexer.$(file.patterns.nim)=nim
    7 
    8 *filter.nim=$(filter.nim)
    9 *language.nim=Nim|nim||
   10 *source.patterns.nim=$(file.patterns.nim);
   11 
   12 # Primary keywords
   13 keywords.$(file.patterns.nim)=addr and as asm bind block break case cast concept \
   14 const continue converter defer discard distinct div do elif else end enum \
   15 except export finally for from func if import in include interface is \
   16 isnot iterator let macro method mixin mod nil not notin object of or out \
   17 proc ptr raise ref return shl shr static template try tuple type \
   18 using var when while xor yield
   19 
   20 # Auto indentation
   21 statement.indent.$(file.patterns.nim)=15 :
   22 #statement.indent.$(file.patterns.nim)=8 block elif else except finally of for \
   23 #if iterator macro proc template try while
   24 statement.lookback.$(file.patterns.nim)=0
   25 
   26 # Indent view
   27 view.indentation.examine.*.nim=2
   28 
   29 # Determines if generalized raw string Identifiers should have the same color as
   30 # their corresponding string literal
   31 lexer.nim.raw.strings.highlight.ident=0
   32 
   33 # Comment insertion
   34 comment.block.nim=#
   35 comment.stream.start.nim=#[
   36 comment.stream.end.nim=]#
   37 comment.box.start.nim=#[
   38 comment.box.middle.nim= #
   39 comment.box.end.nim=]#
   40 
   41 # Lexer styling
   42 # White space/default
   43 style.nim.0=fore:#808080
   44 # Comment block
   45 style.nim.1=fore:#007F00,$(font.comment)
   46 # Comment block (doc)
   47 style.nim.2=fore:#0000FF,$(font.comment)
   48 # Comment line
   49 style.nim.3=fore:#007F00,$(font.comment)
   50 # Comment line (doc)
   51 style.nim.4=fore:#D73A49,$(font.comment)
   52 # Number
   53 style.nim.5=fore:#007F7F
   54 # String
   55 style.nim.6=fore:#7F007F
   56 # Character
   57 style.nim.7=fore:#7F007F
   58 # Word
   59 style.nim.8=fore:#00007F,bold
   60 # Triple
   61 style.nim.9=fore:#7F0000
   62 # Triple double
   63 style.nim.10=fore:#7F0000
   64 # Backticks
   65 style.nim.11=fore:#000000
   66 # Function name (eg. after proc, macro, template, etc.)
   67 style.nim.12=fore:#007F7F,bold
   68 # End of line where string is not closed
   69 style.nim.13=fore:#000000,$(font.monospace),back:#E0C0E0,eolfilled
   70 # Numeric format error (eg. when a binary value is incorrect, like 0b1510)
   71 style.nim.14=fore:#000000,back:#FF8080
   72 # Operator
   73 style.nim.15=bold
   74 # Identifier
   75 style.nim.16=fore:#000000
   76 
   77 # Nim Compiler User Guide:
   78 # https://nim-lang.org/docs/nimc.html
   79 if PLAT_WIN
   80 	command.go.$(file.patterns.nim)=nim c -r "$(FileNameExt)"
   81 	command.go.subsystem.$(file.patterns.nim)=1
   82 
   83 if PLAT_GTK
   84 	command.go.$(file.patterns.nim)=nim c -r "$(FileNameExt)"
   85 
   86 command.compile.$(file.patterns.nim)=nim c "$(FilePath)"
   87 command.help.$(file.patterns.nim)=nim -h
   88 
   89 # Add command to Tools menu
   90 command.name.1.$(file.patterns.nim)=Compile Release Version
   91 command.1.$(file.patterns.nim)=nim c -d:release "$(FileNameExt)"