mirror of
https://github.com/getzola/zola
synced 2024-11-13 23:57:06 +00:00
e0291cec65
Also fix tests Close #367, #372
65 lines
3.3 KiB
YAML
65 lines
3.3 KiB
YAML
%YAML 1.2
|
|
---
|
|
# http://www.sublimetext.com/docs/3/syntax.html
|
|
name: MiniZinc (MZN)
|
|
file_extensions:
|
|
- mzn
|
|
- dzn
|
|
scope: source.mzn
|
|
contexts:
|
|
main:
|
|
- match: \%.*
|
|
scope: comment.line.percentage.mzn
|
|
- match: /\*
|
|
push:
|
|
- meta_scope: comment.block.mzn
|
|
- match: \*/
|
|
pop: true
|
|
- match: \'.*?\'
|
|
scope: string.quoted.single.mzn
|
|
- match: \".*?\"
|
|
scope: string.quoted.double.mzn
|
|
- match: \b(ann|annotation|any|constraint|function|in|include|list|of|op|output|minimize|maximize|par|predicate|record|satisfy|solve|test|type|var)\b
|
|
scope: keyword.control.mzn
|
|
- match: \b(array|set|bool|enum|float|int|string|tuple)\b
|
|
scope: storage.type.mzn
|
|
- match: \b(for|forall|if|then|else|endif|where)\b
|
|
scope: keyword.control.mzn
|
|
- match: \b(abort|abs|acosh|array_intersect|array_union|array1d|array2d|array3d|array4d|array5d|array6d|asin|assert|atan|bool2int|card|ceil|concat|cos|cosh|dom|dom_array|dom_size|fix|exp|floor|index_set|index_set_1of2|index_set_2of2|index_set_1of3|index_set_2of3|index_set_3of3|int2float|is_fixed|join|lb|lb_array|length|ln|log|log2|log10|min|max|pow|product|round|set2array|show|show_int|show_float|sin|sinh|sqrt|sum|tan|tanh|trace|ub|ub_array)\b
|
|
scope: entity.name.function.mzn
|
|
- match: \b(circuit|disjoint|maximum|maximum_arg|member|minimum|minimum_arg|network_flow|network_flow_cost|partition_set|range|roots|sliding_sum|subcircuit|sum_pred)\b
|
|
scope: support.function.mzn
|
|
- match: \b(alldifferent|all_different|all_disjoint|all_equal|alldifferent_except_0|nvalue|symmetric_all_different)\b
|
|
scope: support.function.mzn
|
|
- match: \b(lex2|lex_greater|lex_greatereq|lex_less|lex_lesseq|strict_lex2|value_precede|value_precede_chain)\b
|
|
scope: support.function.mzn
|
|
- match: \b(arg_sort|decreasing|increasing|sort)\b
|
|
scope: support.function.mzn
|
|
- match: \b(int_set_channel|inverse|inverse_set|link_set_to_booleans)\b
|
|
scope: support.function.mzn
|
|
- match: \b(among|at_least|at_most|at_most1|count|count_eq|count_geq|count_gt|count_leq|count_lt|count_neq|distribute|exactly|global_cardinality|global_cardinality_closed|global_cardinality_low_up|global_cardinality_low_up_closed)\b
|
|
scope: support.function.mzn
|
|
- match: \b(bin_packing|bin_packing_capa|bin_packing_load|diffn|diffn_k|diffn_nonstrict|diffn_nonstrict_k|geost|geost_bb|geost_smallest_bb|knapsack)\b
|
|
scope: support.function.mzn
|
|
- match: \b(alternative|cumulative|disjunctive|disjunctive_strict|span)\b
|
|
scope: support.function.mzn
|
|
- match: \b(regular|regular_nfa|table)\b
|
|
scope: support.function.mzn
|
|
- match: \b(not|\+|-)\b
|
|
scope: keyword.operator.math.mzn
|
|
- match: \b(<->|->|<-|\\/|xor|/\\)\b
|
|
scope: keyword.operator.logical.mzn
|
|
- match: \b(<|>|<=|>=|==|=|!=)\b
|
|
scope: keyword.operator.math.mzn
|
|
- match: \b(\+|-|\*|/|div|mod)\b
|
|
scope: keyword.operator.math.mzn
|
|
- match: \b(in|subset|superset|union|diff|symdiff|intersect)\b
|
|
scope: keyword.operator.sets.mzn
|
|
- match: \|\.\.|\+\+
|
|
scope: keyword.operator.math.mzn
|
|
- match: \b(true|false)\b
|
|
scope: constant.language.mzn
|
|
- match: '\b([_A-Za-z])(\w*)\b'
|
|
scope: variable.other.mzn
|
|
- match: '([+-]?)\d+(\.[^\.]\d*)?([eE][-+]?\d+)?'
|
|
scope: constant.numeric.mzn
|