From a4ba3a60307c4a9267dfc0346876716eaa763b89 Mon Sep 17 00:00:00 2001 From: sfalexrog Date: Tue, 13 Aug 2019 20:28:21 +0300 Subject: [PATCH] builder: add nanorc for launch files (#162) * builder: Add nanorc for launch files * nanorc: Change top comment --- builder/assets/launch.nanorc | 22 ++++++++++++++++++++++ builder/image-build.sh | 1 + 2 files changed, 23 insertions(+) create mode 100644 builder/assets/launch.nanorc diff --git a/builder/assets/launch.nanorc b/builder/assets/launch.nanorc new file mode 100644 index 00000000..208b5795 --- /dev/null +++ b/builder/assets/launch.nanorc @@ -0,0 +1,22 @@ +## ROS .launch files (which are actually xml files) + +syntax "launch" "\.(launch)$" +header "<\?xml.*version=.*\?>" +magic "(XML|SGML) (sub)?document" +comment "" + +# The entire content of the tag: +color green start="<" end=">" + +# The start and the end of the tag: +color cyan "<[^> ]+" ">" + +# The strings inside the tag: +color magenta "\"[^"]*\"" + +# Comments: +color yellow start="" +color yellow start="" + +# Escapes: +color red "&[^;]*;" diff --git a/builder/image-build.sh b/builder/image-build.sh index 4d1c84e9..5334fdd8 100755 --- a/builder/image-build.sh +++ b/builder/image-build.sh @@ -113,6 +113,7 @@ ${BUILDER_DIR}/image-chroot.sh ${IMAGE_PATH} copy ${SCRIPTS_DIR}'/assets/roscore ${BUILDER_DIR}/image-chroot.sh ${IMAGE_PATH} copy ${SCRIPTS_DIR}'/assets/kinetic-rosdep-clever.yaml' '/etc/ros/rosdep/' ${BUILDER_DIR}/image-chroot.sh ${IMAGE_PATH} copy ${SCRIPTS_DIR}'/assets/ros_python_paths' '/etc/sudoers.d/' ${BUILDER_DIR}/image-chroot.sh ${IMAGE_PATH} copy ${SCRIPTS_DIR}'/assets/pigpiod.service' '/lib/systemd/system/' +${BUILDER_DIR}/image-chroot.sh ${IMAGE_PATH} copy ${SCRIPTS_DIR}'/assets/launch.nanorc' '/usr/share/nano/' # ${BUILDER_DIR}/image-chroot.sh ${IMAGE_PATH} copy ${SCRIPTS_DIR}'/assets/kinetic-ros-clever.rosinstall' '/home/pi/ros_catkin_ws/' # Add PX4 udev rules ${BUILDER_DIR}/image-chroot.sh ${IMAGE_PATH} copy ${REPO_DIR}'/clever/config/99-px4fmu.rules' '/lib/udev/rules.d/'