Home Explore Blog CI



neovim

6th chunk of `runtime/doc/ft_ada.txt`
db519b519ea7846ee6ebe1505971aca682424b437a0c295500000001000007d8

:GnatPretty							 *:GnatPretty*
		Calls |g:gnat.Pretty()|

:GnatTags							   *:GnatTags*
		Calls |g:gnat.Tags()|

------------------------------------------------------------------------------
5.3 Variables ~
							    *ft-ada-variables*

								      *g:gnat*
g:gnat			    object
		Control object which manages GNAT compiles.  The object
		is created when the first Ada source code is loaded provided
		that |g:ada_default_compiler| is set to "gnat". See
		|gnat_members| for details.

								    *g:decada*
g:decada		      object
		Control object which manages Dec Ada compiles.	The object
		is created when the first Ada source code is loaded provided
		that |g:ada_default_compiler| is set to "decada". See
		|decada_members| for details.

------------------------------------------------------------------------------
5.4 Constants ~
							    *ft-ada-constants*

All constants are locked. See |:lockvar| for details.

							     *g:ada#WordRegex*
g:ada#WordRegex		string
		Regular expression to search for Ada words.

							  *g:ada#DotWordRegex*
g:ada#DotWordRegex	string
		Regular expression to search for Ada words separated by dots.

							       *g:ada#Comment*
g:ada#Comment		string
		Regular expression to search for Ada comments.

							      *g:ada#Keywords*
g:ada#Keywords		list of dictionaries
		List of keywords, attributes etc. pp. in the format used by
		omni completion. See |complete-items| for details.

							   *g:ada#Ctags_Kinds*
g:ada#Ctags_Kinds	dictionary of lists
		Dictionary of the various kinds of items which the Ada support
		for Ctags generates.

------------------------------------------------------------------------------
5.5 Functions ~
							    *ft-ada-functions*

ada#Word([{line}, {col}])					  *ada#Word()*
		Return full name of Ada entity under the cursor (or at given
		line/column), stripping white space/newlines as necessary.

ada#List_Tag([{line}, {col}])				      *ada#Listtags()*
		List all occurrences of the Ada entity under the cursor (or

Title: ADA File Type Plugin: Commands, Variables, and Functions
Summary
This section details the ':GnatPretty' and ':GnatTags' commands, which call corresponding gnat functions. It introduces 'g:gnat' and 'g:decada' objects that manage GNAT and Dec Ada compiles, respectively, based on the 'g:ada_default_compiler' variable. The section also lists locked constants like 'g:ada#WordRegex', 'g:ada#DotWordRegex', 'g:ada#Comment', 'g:ada#Keywords', and 'g:ada#Ctags_Kinds'. Finally, it describes the functions 'ada#Word()' and 'ada#List_Tag()', which return the full name of an Ada entity under the cursor and list all occurrences of the Ada entity under the cursor respectively.