Did China Literature Pay Attention to Grammar in Tang Dynasty?

Of course I'll pay attention. Take poetry as an example.

Poetry stresses rhyme. In Wang Wei's Autumn Night in the Mountain, the autumn is crisp, the crystal stones in the mountain stream face each other, and the autumn is rhyming with the flow. This antithesis and rhyme is the grammar of China's ancient poems.

Some basic sentence patterns in classical Chinese, such as inverted sentences, passive sentences, ellipsis sentences and judgment sentences, are divided into four categories: prepositional object sentences, adverbial postposition sentences (prepositional phrases), attributive postposition sentences and subject-predicate inversion sentences (prepositional sentences). These are grammars. Therefore, of course, the Tang Dynasty paid attention to grammar.