Update tags test to reflect new handling of escapes in queries

This commit is contained in:
Max Brunsfeld 2020-03-10 15:53:42 -07:00
parent 4531130b44
commit 0e02ead0de

View file

@ -10,13 +10,13 @@ fn test_tags_python() {
((function_definition
name: (identifier) @name
body: (block . (expression_statement (string) @doc))) @function
(set! strip @doc "(^['\s]*)|(['\s]*$)"))
(set! strip @doc "(^['\"\\s]*)|(['\"\\s]*$)"))
(function_definition
name: (identifier) @name) @function
((class_definition
name: (identifier) @name
body: (block . (expression_statement (string) @doc))) @class
(set! strip @doc "(^['\s]*)|(['\s]*$)"))
(set! strip @doc "(^['\"\\s]*)|(['\"\\s]*$)"))
(class_definition
name: (identifier) @name) @class
(call
@ -32,9 +32,9 @@ fn test_tags_python() {
&tags_config,
br#"
class Customer:
'''
"""
Data about a customer
'''
"""
def age(self):
'''