kythe.io@v0.0.68-0.20240422202219-7225dbc01741/kythe/cxx/indexer/textproto/plugins/example/testdata/syntax_test.pbtxt (about) 1 # proto-file: kythe/cxx/indexer/textproto/plugins/example/testdata/example.proto 2 # proto-message: kythe_plugin_example.Person 3 4 # This test ensures that the plugin system can handle the various different 5 # syntax options for specifying field values. It is more a test of the plugin 6 # system than of the example plugin. 7 8 #- @name ref/writes NameField 9 #- @person1 defines/binding Person1 10 name: "person1" 11 12 #- @friend ref/writes FriendField 13 #- @"person\" \"1" ref Person1 14 friend: "person" "1" 15 16 #- @friend ref/writes FriendField 17 #- @person1 ref Person1 18 #- @person2 ref Person2? 19 friend: [ "person1", "person2" ] 20 21 #- @friend ref/writes FriendField 22 #- StrValue ref Person1 23 friend: 24 #- StrValue.loc/start @^per 25 "per" 26 #- StrValue.loc/end @$son1 27 "son1" 28 29 #- @friend ref/writes FriendField 30 #- @"per\\n\\n\\nson3" ref Person3? 31 friend: "per\n\n\nson3" 32 33 # test that tabs are handled correctly 34 #- @friend ref/writes FriendField 35 #- @"person1" ref Person1 36 friend : "person1"