wireshark/epan/dfilter
João Valverde 967a3c3df9 Qt: Check field autocomplete for syntactical validity
Currently the autocompletion engine always suggests a protocol
field completion, even in places where it isn't syntactically
valid.

Fix that by compiling the preamble to the token under the cursor
and checking the returned error. If it is DF_ERROR_UNEXPECTED_END
that indicates a field or literal value was expected. Otherwise
a field replacement is not valid in this position.

Fixes #12811.
2022-12-01 22:50:09 +00:00
..
.editorconfig dfilter: Fix EditorConfig settings 2022-03-21 17:49:12 +00:00
CMakeLists.txt dfilter: Rename test syntax tree node 2022-07-02 11:39:17 +01:00
dfilter-int.h dfilter: Add optimization flag 2022-11-30 17:36:17 +00:00
dfilter-macro.c dfilter: Add suport for raw addressing with references 2022-10-31 21:02:39 +00:00
dfilter-macro.h dfilter: Refactor macro tree references 2022-03-29 12:36:31 +00:00
dfilter.c dfilter: Replace compile booleans arguments with a bit flag 2022-11-30 17:36:17 +00:00
dfilter.h Qt: Check field autocomplete for syntactical validity 2022-12-01 22:50:09 +00:00
dfunctions.c dfilter: Return an error object instead of string 2022-11-28 15:46:44 +00:00
dfunctions.h dfilter: Allow arithmetic expressions as function arguments 2022-04-18 17:10:31 +01:00
dfvm.c dfilter: Add suport for raw addressing with references 2022-10-31 21:02:39 +00:00
dfvm.h dfilter: Add suport for raw addressing with references 2022-10-31 21:02:39 +00:00
drange.c dfilter: Add layer support for references 2022-06-25 14:57:40 +01:00
drange.h dfilter: Add layer support for references 2022-06-25 14:57:40 +01:00
gencode.c dfilter: Add optimization flag 2022-11-30 17:36:17 +00:00
gencode.h epan: Add header files to Doxygen 2021-11-30 08:46:49 +00:00
grammar.lemon Qt: Check field autocomplete for syntactical validity 2022-12-01 22:50:09 +00:00
scanner.l dfilter: Return an error object instead of string 2022-11-28 15:46:44 +00:00
semcheck.c dfilter: Return an error object instead of string 2022-11-28 15:46:44 +00:00
semcheck.h dfilter: Allow arithmetic expressions as function arguments 2022-04-18 17:10:31 +01:00
sttype-field.c dfilter: Improve representation of raw field references 2022-10-31 21:02:39 +00:00
sttype-field.h dfilter: Add support for raw (bytes) addressing mode 2022-10-31 21:02:39 +00:00
sttype-function.c dfilter: Allow arithmetic expressions as function arguments 2022-04-18 17:10:31 +01:00
sttype-function.h dfilter: Allow arithmetic expressions as function arguments 2022-04-18 17:10:31 +01:00
sttype-op.c dfilter: Fix some debug strings 2022-07-02 21:21:12 +01:00
sttype-op.h dfilter: Rename test syntax tree node 2022-07-02 11:39:17 +01:00
sttype-pointer.c dfilter: Remove STTYPE_RANGE_NODE 2022-06-25 16:06:48 +01:00
sttype-pointer.h dfilter: Add max() and min() functions 2022-04-14 13:07:41 +00:00
sttype-set.c Remove some unnecessary casts. 2021-10-27 10:24:20 +01:00
sttype-set.h epan: Add header files to Doxygen 2021-11-30 08:46:49 +00:00
sttype-slice.c dfilter: Add layer support for references 2022-06-25 14:57:40 +01:00
sttype-slice.h dfilter: Add layer support for references 2022-06-25 14:57:40 +01:00
sttype-string.c dfilter: Remove unparsed syntax type and RHS literal bias 2022-07-02 11:18:20 +01:00
syntax-tree.c dfilter: Improve representation of raw field references 2022-10-31 21:02:39 +00:00
syntax-tree.h dfilter: Rename test syntax tree node 2022-07-02 11:39:17 +01:00