Skip to content

Commit 378f4e1

Browse files
authored
Update heuristics for ROS Interface (#7602)
1 parent 196180b commit 378f4e1

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

lib/linguist/heuristics.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ disambiguations:
5757
rules:
5858
- language: ROS Interface
5959
and:
60-
- pattern: '^[a-z][a-z0-9_]*(?:\/[a-zA-Z]\w*)?(?:<=\d+)?(?:\[(?:<=\d+)?\])?\s+\w+\b'
60+
- pattern: '(?i)^[a-z]\w*(?:\/[a-z]\w*)?(?:<=\d+)?(?:\[(?:<=\d+)?\])?\s+\w+\b'
6161
- pattern: '^---\s*$'
6262
- negative_pattern: '^\s*[^\s@#\w-]'
6363
- extensions: ['.al']
@@ -539,7 +539,7 @@ disambiguations:
539539
pattern: '^cplusplus\(?[\S]*\)?[\s]*\{?\{?|^namespace[\s]+([^.\s]*\.)*[^.\s]*;|^struct[\s]+[\S]+|^message[\s]+[\S]+(extends )?[\S]*[\s]*|^packet[\s]+[\S]+|^class[\s]+[\S]+(extends )?[\S]*[\s]*|^enum[\s]+[\S]+|^import ([^.\s]*\.)*[^.\s]*;'
540540
- language: ROS Interface
541541
and:
542-
- pattern: '^[a-z][a-z0-9_]*(?:\/[a-zA-Z]\w*)?(?:<=\d+)?(?:\[(?:<=\d+)?\])?\s+\w+\b'
542+
- pattern: '(?i)^[a-z]\w*(?:\/[a-z]\w*)?(?:<=\d+)?(?:\[(?:<=\d+)?\])?\s+\w+\b'
543543
- negative_pattern: '^\s*[^\s@#\w-]'
544544
- extensions: ['.n']
545545
rules:
@@ -805,7 +805,7 @@ disambiguations:
805805
rules:
806806
- language: ROS Interface
807807
and:
808-
- pattern: '^[a-z][a-z0-9_]*(?:\/[a-zA-Z]\w*)?(?:<=\d+)?(?:\[(?:<=\d+)?\])?\s+\w+\b'
808+
- pattern: '(?i)^[a-z]\w*(?:\/[a-z]\w*)?(?:<=\d+)?(?:\[(?:<=\d+)?\])?\s+\w+\b'
809809
- pattern: '^---\s*$'
810810
- negative_pattern: '^\s*[^\s@#\w-]'
811811
- extensions: ['.st']
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# From https://github.com/ros2/rcl_interfaces/blob/1bd7d0b36c79e9e6db6980301f3732fff51ddc50/rcl_interfaces/msg/ParameterEventDescriptors.msg
2+
3+
# This message contains descriptors of a parameter event.
4+
# It was an atomic update.
5+
# A specific parameter name can only be in one of the three sets.
6+
7+
ParameterDescriptor[] new_parameters
8+
ParameterDescriptor[] changed_parameters
9+
ParameterDescriptor[] deleted_parameters

0 commit comments

Comments
 (0)