Skip to content

Commit

Permalink
Add completions file for the Sublime Text cross-platform text editor
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoura committed Sep 12, 2014
1 parent cb1b0e0 commit 59e07f6
Show file tree
Hide file tree
Showing 3 changed files with 247 additions and 8 deletions.
5 changes: 3 additions & 2 deletions RELEASE_NOTES.md
Expand Up @@ -66,8 +66,9 @@ avoid a clash with a Lean Prolog built-in predicate.
IDEs, text editors, and syntax highlighters support
---------------------------------------------------

* UPDATED: Instruction to add support for syntax coloring and code snippets to
the Sublime Text text editor.
* ADDED: Completions file for the Sublime Text cross-platform text editor.
Also updated the instructions on how to add support for syntax coloring and
code snippets.

* FIXED: Missing Pygments syntax coloring of the `module/2` opening directive,
instructions to use the Logtalk lexer with Prolog files, and instructions for
Expand Down
13 changes: 7 additions & 6 deletions coding/sublimetext/NOTES.txt
Expand Up @@ -17,14 +17,15 @@ Sublime Text (version 1.03 or later) supports TextMate syntax files and
TextMate snippets (version 1.2 or later). See the `../textmate` folder
and the Sublime Text documentation for more information.

For basic installation follow the steps:
For basic installation, copy the following files to the Sublime Text Packages
directory at `~/Library/Application Support/Sublime Text 2/Packages/Logtalk/`
(create the `Logtalk` subdirectory if it doesn't exist):

1. Copy the file `../textmate2/Logtalk.tmbundle/Syntaxes/logtalk.plist` to the
`~/Library/Application Support/Sublime Text 2/Packages/Logtalk/` directory
(create the `Logtalk` subdirectory if it doesn't exist).
1. File `../textmate2/Logtalk.tmbundle/Syntaxes/logtalk.plist`

2. Copy the files in the `../textmate2/Logtalk.tmbundle/Snippets` directory to
the `~/Library/Application Support/Sublime Text 2/Packages/Logtalk/` directory.
2. All files in the `../textmate2/Logtalk.tmbundle/Snippets` directory

3. File `logtalk.sublime-completions`

Logtalk source files (including the library entities and the programming
examples) are formatted using tabs (the recommended setting is a tab width
Expand Down
237 changes: 237 additions & 0 deletions coding/sublimetext/logtalk.sublime-completions
@@ -0,0 +1,237 @@
{
"scope": "source.logtalk",

"completions":
[
"if",
"elif",
"else",
"endif",
"encoding",
"ensure_loaded",
"include",
"calls",
"category",
"built_in",
"dynamic",
"end_category",
"end_object",
"end_protocol",
"info",
"initialization",
"object",
"protocol",
"synchronized",
"threaded",
"uses",
"alias",
"discontiguous",
"meta_predicate",
"meta_non_terminal",
"mode",
"module",
"multifile",
"coinductive",
"op",
"private",
"protected",
"public",
"use_module",
"export",
"reexport",
"current_object",
"current_protocol",
"current_category",
"object_property",
"protocol_property",
"category_property",
"create_object",
"create_protocol",
"create_category",
"abolish_object",
"abolish_protocol",
"abolish_category",
"complements",
"extends",
"complements_object",
"conforms_to_protocol",
"extends_object",
"extends_protocol",
"extends_category",
"implements",
"implements_protocol",
"imports",
"imports_category",
"instantiates",
"instantiates_class",
"specializes",
"specializes_class",
"abolish_events",
"current_event",
"define_events",
"logtalk_load",
"logtalk_compile",
"logtalk_library_path",
"logtalk_load_context",
"logtalk_make",
"current_logtalk_flag",
"set_logtalk_flag",
"threaded_call",
"threaded_once",
"threaded_ignore",
"threaded_exit",
"threaded_peek",
"threaded_wait",
"threaded_notify",
"self",
"this",
"sender",
"parameter",
"before",
"after",
"forward",
"phrase",
"expand_term",
"expand_goal",
"goal_expansion",
"term_expansion",
"true",
"fail",
"false",
"call",
"catch",
"throw",
"subsumes_term",
"unify_with_occurs_check",
"var",
"atom",
"integer",
"float",
"atomic",
"callable",
"compound",
"nonvar",
"number",
"ground",
"acyclic_term",
"compare",
"arg",
"copy_term",
"functor",
"numbervars",
"term_variables",
"current_predicate",
"predicate_property",
"abolish",
"assertz",
"asserta",
"clause",
"retract",
"retractall",
"bagof",
"findall",
"forall",
"setof",
"current_input",
"current_output",
"set_input",
"set_output",
"open",
"close",
"flush_output",
"stream_property",
"at_end_of_stream",
"set_stream_position",
"get_char",
"get_code",
"peek_char",
"peek_code",
"put_char",
"put_code",
"nl",
"get_byte",
"peek_byte",
"put_byte",
"read",
"read_term",
"write",
"writeq",
"write_canonical",
"atom_chars",
"atom_codes",
"atom_concat",
"number_chars",
"number_codes",
"current_op",
"char_conversion",
"current_char_conversion",
"ignore",
"once",
"repeat",
"atom_length",
"atom_concat",
"sub_atom",
"atom_chars",
"atom_codes",
"char_code",
"number_chars",
"number_codes",
"set_prolog_flag",
"current_prolog_flag",
"halt",
"keysort",
"sort",
"abs",
"acos",
"asin",
"atan",
"ceiling",
"cos",
"exp",
"float_fractional_part",
"float_integer_part",
"floor",
"log",
"max",
"min",
"mod",
"rem",
"round",
"sign",
"sin",
"sqrt",
"truncate",
"unknown_entities",
"singleton_variables",
"unknown_predicates",
"undefined_predicates",
"underscore_variables",
"portability",
"redefined_built_ins",
"missing_directives",
"complements",
"dynamic_declarations",
"events",
"context_switching_calls",
"scratch_directory",
"report",
"reload",
"hook",
"code_prefix",
"optimize",
"debug",
"clean",
"source_data",
"version",
"prolog_dialect",
"prolog_version",
"prolog_compatible_version",
"encoding_directive",
"threads",
"modules",
"tabling",
"coinduction",
"prolog_compiler",
"prolog_loader"
]
}

0 comments on commit 59e07f6

Please sign in to comment.