'Look back from the given position for a trigger point within
range.
"pos" is the position at which to begin backtracking. (I.e. for
the first Ctrl+J this is the cursor position, for the next
Ctrl+J it is the position of the current
autocomplete/calltip UI.)
"curr_pos" is the current position -- the one to use to
determine if within range of a found trigger. (I.e. this is
the cursor position in Komodo.)
Here "within range" depends on the language and the trigger. This
is the main determinant for the "Ctrl+J" (explicitly trigger
completion now) functionality in Komodo, for example, and the
ultimate goal is to not surprisingly move the cursor on the user.
Here is the algorithm:
- Only consider a *completion* (i.e. TRG_FORM_CPLN) trigger point
if `pos\' is in range. I.e.:
sys.pat<|>h         # consider the `sys.\' trigger
os.path.join("<|>   # do not consider the `os.path.\' trigger
- Only consider a calltip trigger point inside the argument
region.
I.e., "within range" means, we could show the UI for that completion
in scintilla without having to move the cursor.
The default implementation defers to the langintel for this buffer.
Returns a Trigger instance or None.'

def preceding_trg_from_pos(self, pos, curr_pos):

    return self.langintel.preceding_trg_from_pos(self, pos, curr_pos)
